-4
x = int(input("Enter first number: "))

y = int(input("Enter second number: "))

print divmod(x,y)

It displayed that divmod in invalid syntax. I am using python version 3.4.3.

Benoit Esnard
  • 1,959
  • 1
  • 22
  • 31

1 Answers1

3

the print statement in python 3 requires brackets - the problem is not divmod:

print(divmod(x,y))
hiro protagonist
  • 40,708
  • 13
  • 78
  • 98