Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("*"*100)
- print(" " *35, "This is a simple guess game")
- print(" " *33, "I guessed a number between 0-10")
- print("*"*100)
- guess_szam =6
- max_life=3
- jatekos_szam = int(input('What is my number'))
- while not guess_szam == jatekos_szam:
- max_life -=1
- if max_life == 0:
- break
- print ("wrong...")
- print (f"You have {max_life} left..")
- jatekos_szam = int(input('What is my number'))
- if jatekos_szam == guess_szam:
- print(f"That's it! {jatekos_szam} was my number!!")
- print ("End")
- else:
- print("Vesztettél!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement