Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- #ch = random.randint(1,5)
- running = True
- while running:
- ch = random.randint(1,5)
- n = int(input('введи целое число:'))
- if n == ch:
- print('Верно! И вы выиграли автомобиль!')
- print('Еще разок? Да / Нет')
- c = input()
- if c == 'Да':
- continue
- if c == 'Нет':
- running = False
- else:
- print('Да или Нет')
- elif n > ch:
- print('Не верно. Меньше надо')
- else:
- print('Не правильно. Больше надо')
- else:
- print('Выход')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement