- 1
whats wrong with my code:check out##
print(input("enter a number")) If num==10: Print("well") Else: Print("try again")
2 Answers
+ 3
At least uppercase of first letter 'if' and 'else': Python is case sensitive ^^
And you need to store the user input in 'num' variable, and convert it to number or compare to string:
num = int(input("enter a number"))
print(num) # if you need/want output it
if num==10:
Print("well")
else:
Print("try again")
0
Thank you