Guessing a Name Game in Python
secreat = "Webha"
Guess =""
Guess_count = 0
i = 3
while secreat != Guess and Guess_count <= 2:
print("You have " + str(i) + " attempts Left ")
Guess = input("Enter your GF name : Hint word is of 5 char \n")
Guess_count += 1
i -= 1
if secreat == Guess:
print("Yes your GF name is : Webha !! you Win")
else:
print("you lost ")
0 comments:
Post a Comment