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.
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.
the print statement in python 3 requires brackets - the problem is not divmod
:
print(divmod(x,y))