print('you win!'wins wins elif playermove ='sand computermove =' 'print('you win!'wins wins elif playermove ='rand computermove =' 'print('you lose!'losses losses elif playermove ='pand computermove =' 'print('you lose!'losses losses elif playermove ='sand computermove =' 'print('you lose!'losses losses let' look at this code line by linestarting at the top import randomsys print('rockpaperscissors'these variables keep track of the number of winslossesand ties wins losses ties firstwe import the random and sys module so that our program can call the random randint(and sys exit(functions we also set up three variables to keep track of how many winslossesand ties the player has had while truethe main game loop print('% wins% losses% ties(winslossesties)while truethe player input loop print('enter your move( )ock ( )aper ( )cissors or ( )uit'playermove input(if playermove =' 'sys exit(quit the program if playermove ='ror playermove ='por playermove =' 'break break out of the player input loop print('type one of rpsor 'this program uses while loop inside of another while loop the first loop is the main game loopand single game of rockpaperscissors is player on each iteration through this loop the second loop asks for input from the playerand keeps looping until the player has entered an rpsor for their move the rpand correspond to rockpaperand scissorsrespectivelywhile the means the player intends to quit in that casesys exit(is called and the program exits if the player has entered rpor sthe execution breaks out of the loop otherwisethe program reminds the player to enter rpsor and goes back to the start of the loop flow control