This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
human_score = 0 | |
computer_score = 0 | |
def choice_to_number(x): | |
return {'rock':1,'paper':2,'scissors':3}[x] | |
#print(mydict[name]) | |
def random_choice(): | |
import random | |
return random.choice(['rock','paper','scissors']) |