Created
January 24, 2019 17:18
-
-
Save rok-povsic/81e5d6264042ad120d13b301824b57ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
skrito_stevilo = 6 | |
poskus = int(input("Vpiši število: ")) | |
stevilo_poskusov = 1 | |
while True: | |
if skrito_stevilo == poskus: | |
print("Čestitke, zadeli ste skrito število") | |
break | |
elif stevilo_poskusov == 5: | |
print("Nimate več poskusov") | |
break | |
else: | |
print("Napačno") | |
poskus = int(input("Ponovno vpiši število: ")) | |
stevilo_poskusov = stevilo_poskusov + 1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment