22nd Jan 2018, 5:07 PM
Abel
Abel - avatar
3 Answers
+ 4
Working on it... EDIT A few problems here: x=0 y=0 def Not_Equal(): x = input("Enter 2 numbers:\n") y = input("") if x!=y: print("Not Equal") else: print("Equal") Not_Equal() First, indentation in Python works like {} in normal languages. You have to have print(not equal/equal) indebted farther than the if and else. Second, you need to call Not_Equal at the end so that code actually runs. Third, the function does not need any parameters. Fourth, to store the values of input() in variables, you do this: var = input(“message”)
22nd Jan 2018, 5:22 PM
Jacob Pembleton
Jacob Pembleton - avatar
+ 1
you have bad indentation fix the number of spaces on the beginning of line
22nd Jan 2018, 5:21 PM
michal
+ 1
thx guys
22nd Jan 2018, 5:23 PM
Abel
Abel - avatar