import random
playing = True
numbergenerated = str(random.randint(0,9))
print("I will generate a number from 0 to 9, and you have to guess the number one digit at a time.")
while playing:
guess = input("give me your best guess!/n")
if numbergenerated == guess:
print("you win mate ")
print("the nuber was",numbergenerated)
break
else:
print("yo guess aint right bud,try again or ill kill you./n")
To embed this project on your website, copy the following code and paste it into your website's HTML: