Created
November 24, 2014 17:15
-
-
Save MishoG/392a6d9556f18e99925b to your computer and use it in GitHub Desktop.
რიცხვის გამოცნობა
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
number = random.randint(1, 50) | |
attempts = 5 | |
for attempt in range(attempts): | |
guess = int(input('chaweret ricxvi 1 dan 50 mde: ')) | |
if guess > number: | |
print ('tqveni ricxvi dzalian didia' ) | |
elif guess < number: | |
print ('tqveni ricxvi dzalian pataraa') | |
else: | |
print ('tqven gamoicanit ricxvi es iyo ' , number ) | |
print('tqven gamoicanit ', attempts, ' cdashi') | |
if guess != number: | |
print('samwuxarod cdebis limiti amoiwura ') | |
print('chapikrebuli ricxvi iyo ', number) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment