Untitled
unknown
python
3 years ago
657 B
13
Indexable
Never
from random import randint nick_name = "vanessa" print("Let The Game Begin!") number = randint(1, 100) score = 100 guess = 0 while guess != number: guess = int(input("Guess the number ")) hint = "" if number == guess: print("Congrats! " + nick_name + ", your score is: " + str(score)) break elif number > guess: hint += "Way too Low " elif number < guess: hint += "Way too High " if (number % 2 == 0 and guess % 2 == 1): hint += ", try an even number " if (number % 2 == 1 and guess % 2 == 0): hint += ", try an odd number " hint += nick_name print(hint) score -= 5