-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
  • 2,017
  • 2
  • 24
  • 32

1 Answers1

3

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

print(divmod(x,y))
hiro protagonist
  • 44,693
  • 14
  • 86
  • 111