0

Why is the computer number always 1?

from random import randint otvet = int(input('Чёт (введите 2) или нечёт (введите 1)?')) n_comp = randint(1, 2) print('Число компьютера:', n_comp) print('Похоже Вы ', end = '') if otvet == n_comp: print('выиграли!') else: print('проиграли!')

13th May 2020, 1:03 PM
XXX
XXX - avatar
2 Réponses
0
"Число компьютера" is are computer number
13th May 2020, 1:04 PM
XXX
XXX - avatar
0
It is 2 as well just keep running ,1 is choosen more often maybe
13th May 2020, 1:22 PM
Abhay
Abhay - avatar