ch=34 Modify the guess number game
winning_number = 43
n=1
number = int(input("enter your number"))
game_over = False #False F is always capital if it is small the funtion is not work
while not game_over:
if number == winning_number:
print(f"you win,you took {n} time")
game_over=True # T always capital
else:
if number<winning_number:
print("too low")
n+=1
number=int(input("enter something"))
else:
print("too high")
n+=1
number=int(input("enter something"))
#Always remember the true T is always capital
#And true T is capital
Comments
Post a Comment