diff --git a/src/Guess_game.py b/src/Guess_game.py new file mode 100644 index 0000000000..440d09bee4 --- /dev/null +++ b/src/Guess_game.py @@ -0,0 +1,13 @@ +secret_n = 7 +limit = 3 +guess_count = 0 + +while guess_count < limit: + ad = int(input("Guess: ")) + guess_count += 1 + if ad == secret_n: + print("number founded.") + break +else: + print("game over.") +