1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | def game(): print("Welcome, please find the number between 1 and 10, the answer is +1 each tour ") print('what is your number ? ') number = 5 answer = input("number ? : ") answer = int(answer) if answer > number: print('less than', answer) number += 1 elif answer < number: print('more than', answer) number += 1 else: print("cool") |
Ah oui je voulais dire incrémenté
+0
-0