Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- def initialize():
- global x, y, z, answer
- x = randint(1, 100)
- y = randint(1, 100)
- z = randint(1, 100)
- answer = x + y - z
- initialize()
- print('Решите пример: ', x, '+', y, '-', z, sep='')
- suggest = int(input())
- if suggest == answer:
- print('Верно!')
- else:
- print('Неверно!')
- print('Вы ввели:', suggest)
- print('Ответ был:', answer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement