+ 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
2 odpowiedzi
+ 10
from random import randint
print(t[randint(len(t))])
+ 3
alternative to Md Sayed's solution
import random
print(random.choice(t))