""" There are 2 parts to this exercise. Part 1, refer to google classroom under the classwork tab Part 2: Fix the game. Make it first to 3 wins Challenge: People have habits when they play. Make the computer adjust to the user's habit fairly. """ def RPS(): import random comp_answer = random.choice(["R","P","S"]) valid_input = 0 print("please enter R, P or S") user_choice = input() while(valid_input != 1): if(user_choice != "R" and user_choice != "P" and user_choice != "S"): print("invalid input") print("please enter R, P or S") user_choice = input() else: print("ok") valid_input = 1