This is a simple function that checks the values entered by the user and returns true if x is a multiple of y, if not it returns false. When I run the code, it prompts the user to enter a number for x and y but does not display whether it is true or false. What am I doing wrong?
def is_multiple(x, y):
if (y % x) == 0:
print("True")
else:
print("False")
x = int(input("enter any number :"))
y = int(input("enter a multiple :"))
None; it writes the stringTrueor the stringFalseto standard output.)