+ 1

Hello, this code doesn't seem to work. Please whats the problem?

pin = int(input(please input your pin: ")) If (pin == 1234): print(go to step 2) else: print(incorrect pin)

3rd Jun 2020, 5:21 PM
Idris Samir
Idris Samir - avatar
2 odpowiedzi
+ 3
pin = int(input("please input your pin: ") or 3) if (pin == 1234): print("go to step 2") else: print("incorrect pin")
3rd Jun 2020, 6:11 PM
JaScript
JaScript - avatar
+ 4
1. The indentation is wrong. if and else have to be out and the other statements inside. 2. You have to enclose your print message in quotes. Like this -- print("Hello")
3rd Jun 2020, 5:28 PM
XXX
XXX - avatar