"""
this is a small game ,you can test it
"""
counter = 0
luck_number = 29
while counter < 3:
guessnuber = int(input("age:"))
if guessnuber == luck_number:
print("good boy you are the lucky people")
break
elif guessnuber > luck_number:
print("the number is bigger than lucknumber")
else:
print("the number is samller than the luck number")
counter = counter + 1
if counter == 3:
keeping = "Y"
choice = input("Do you want to try again? Please choice Yes or No[Y/N]:")
if choice == keeping:
counter = 0
else:
print("thank you ,game over")
else:
print("thank you")
this is a small game ,you can test it
"""
counter = 0
luck_number = 29
while counter < 3:
guessnuber = int(input("age:"))
if guessnuber == luck_number:
print("good boy you are the lucky people")
break
elif guessnuber > luck_number:
print("the number is bigger than lucknumber")
else:
print("the number is samller than the luck number")
counter = counter + 1
if counter == 3:
keeping = "Y"
choice = input("Do you want to try again? Please choice Yes or No[Y/N]:")
if choice == keeping:
counter = 0
else:
print("thank you ,game over")
else:
print("thank you")