- 1

whats wrong with my code

num=10 num=int(input("enter a number")) if num==7: print("oops sorry") if num==8: print("you missed it") else: print("try again")

19th Jul 2017, 2:21 AM
Darwin
Darwin - avatar
1 Respuesta
+ 2
What's the problem you are facing? I only suggest to put a `elif` instead of `if num==8: ` to avoid some unexpected behaviors
19th Jul 2017, 2:35 AM
Tiago Soares
Tiago Soares - avatar