+ 1

from randint import random #create a list of playing options t = ["Rock","paper","Scissor"] #assign random play to the computer

Help me please to find error .... I am new in python

16th Sep 2020, 8:21 AM
Gaming Rebels
Gaming Rebels - avatar
2 Réponses
+ 10
from random import randint print(t[randint(len(t))])
16th Sep 2020, 8:26 AM
TOLUENE
TOLUENE - avatar
+ 3
alternative to Md Sayed's solution import random print(random.choice(t))
16th Sep 2020, 8:44 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar