Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import*
- print('Я загадал число от 1 до 20. Попробуй угадать!')
- secret = randint(1, 20)
- ans = int(input())
- while ans != secret:
- if ans > secret:
- print('Слишком большое число!')
- else:
- print('Маловато...')
- ans = int(input('Попробуй еще раз!\n'))
- print('Молодец, угадал!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement