@@fjesus2354 import random user_wins=0 computer_wins=0 options=["rock","papper","scissor","q","result"] user_input=9 while user_input!="q": user_input=input("choose rock or papper or scissor or q for quit or result to show the result").lower() f=random.randint(0,2) computer_input=options[f] if user_input=="q": break print(computer_input) if user_input=="papper" and computer_input=="rock" : print("you win") user_wins+=1 elif user_input=="rock" and computer_input=="scissor" : print("you win") user_wins+=1 elif user_input=="scissor" and computer_input=="papper" : print("you win") user_wins+=1 elif user_input=="rock" and computer_input=="rock" : print("draw") elif user_input=="papper" and computer_input=="papper" : print("draw") elif user_input=="scissor" and computer_input=="scissor" : print("draw") elif user_input not in options : print("wrong input") else: print("computer win") computer_wins+=1 if user_input=="result" : print("computer wins is ",computer_wins) print("user wins is ",user_wins)