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
import random | |
comp_choise = ['rock' , 'papper' , 'scissor'] | |
while True: | |
user_input = input(f'choose one {comp_choise} ') | |
if user_input in ['roc','ROCK','r']: | |
user_input = 'rock' | |
elif user_input in ['paper','p','pap']: | |
user_input = 'papper' | |
elif user_input in ['scisor', 's', 'scissors']: | |
user_input = f'{comp_choise()}' |