CoCalc Public Files2 / 1234 pin code.ipynbOpen with one click!
Author: Dylan Cortes
Views : 16
Compute Environment: Ubuntu 20.04 (Default)
In [1]:
print("What is the secret 4 digit code?") code = int(input()) if code != 1234: print("Incorrect. Please enter code again.") code = int(input()) if code != 1234: print("Incorrect. Please enter code again.") code = int(input()) if code != 1234: print("Incorrect. You are kicked from the system. Bye Bye.") else: print("Correct.") else: print("Correct.") else: print("Correct.")
What is the secret 4 digit code?
Incorrect. Please enter code again. Incorrect. Please enter code again.
Correct.
In [ ]: