#a. Title: Rock, Paper, Scissor game #b. Author: Davi Barbosa #c. Date: 06/05/2026 #d. Version: 1 #e. Purpose: Allow users to play rock, paper, scissors against the computer import random def script(): print('Welcome to the Rock Paper Scissors program') ##Get the users choice print('What do you choose?') users_pick = input('Rock, Paper or Scissors? ') ##Get the computers choice choices = ["rock", "paper", "scissors"] computer_choice = random.choice(choices) print("Computer chose:", computer_choice) if users_pick == computer_choice: print("It's a tie!") elif (users_pick == "rock" and computer_choice == "scissors") or \ (users_pick == "paper" and computer_choice == "rock") or \ (users_pick == "scissors" and computer_choice == "paper"): print("You win!") else: print("You lose!") ##ask if they want to do it again restart = input('Would you like to restart the program? ') if restart == 'yes' or restart == 'y': script() elif restart == 'no' or restart == 'n': print('script terminanating. Goodbye.') else: print('Invalid choice') script()