python-by-example-150-chall.../challenges52-59/challenge-056.py
2019-07-18 12:44:06 +03:00

8 lines
198 B
Python

import random
choose = random.randint(1, 10)
ask = 0
while choose != ask:
ask = int(input('Choose number from (1-10) to guess computer number ! : '))
print('Correct number {0}'.format(choose))