Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created new file Guess_game.py #1149

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Create Guess_game.py
saksham715 authored Oct 1, 2020
commit ab992362bea7d4b7ca04cbbf7fa5b5cfeda98ee3
13 changes: 13 additions & 0 deletions src/Guess_game.py
Original file line number Diff line number Diff line change
@@ -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.")