jeudi 25 février 2021

Keep getting None value after calling string from list chosen by using random [duplicate]

So Im making game Rock,paper,Scissors and my problem is I keep getting None value after calling variable that contains randomly chosen string from list ''tools''.

import random

tools =["Rock","Scissors","Paper"]
def computer_predicion():
    computer_pred = random.choice(tools)
print(computer_predicion())



Aucun commentaire:

Enregistrer un commentaire