Skip to content

Instantly share code, notes, and snippets.

@MishoG
Created November 24, 2014 17:15
Show Gist options
  • Save MishoG/392a6d9556f18e99925b to your computer and use it in GitHub Desktop.
Save MishoG/392a6d9556f18e99925b to your computer and use it in GitHub Desktop.
რიცხვის გამოცნობა
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