0
Random.choice()
Hello, I am making a Rock Paper Scissors game and need to put a random.choice() function, I’m not getting how to use it help!
2 Antworten
+ 10
# Pass a list of possible options into it:
import random
options = ["Rock", "Paper", "Scissors"]
for _ in range(10):
print(random.choice(options))
+ 4
Something like this
https://code.sololearn.com/cGqk35hA5q52/?ref=app