<prompt> Create a rock-paper-scissor game in python.  <response>: Here is a simple rock-paper-scissors game implemented in Python:pythonimport randomdef play: user inputWhat is your choice? r for rock, p for paper, s for scissors: get the user input computer random.choicer, p, s randomly choosing computers move if user computer: return Its a tie game! r s, s p, p r if is_winuser, computer: return You won! return You lost!def is_winplayer, opponent: return true if player wins r s, s p, p r if player r and opponent s or player s and opponent p or player p and opponent r: return Trueprintplay 