import random
computer_choice = random.choice(['rock', 'paper', 'scissors'])
player_choice = input('Choose rock, paper, or scissors: ')
if player_choice == computer_choice:
print('Tie. Both players chose '+player_choice)
elif (player_choice == 'rock' and computer_choice == 'scissors') or (player_choice == 'paper' and computer_choice == 'rock') or (player_choice == 'scissors' and computer_choice == 'paper'):
print('You won! '+player_choice +' beats '+computer_choice)
else:
print('You lost! '+computer_choice+' beats '+player_choice)
I wrote my code in python 3.8. I hope this helps. Note the elif statement is actually one line of code but it looks like it takes up more than one line.
Please help me on this I don't know which one they are
Question 2 of 3
Based on the descriptions below, which website is most appropriate?
A. a site that asks you to send $10 to help schoolchildren in Uganda
B. a site that describes violent behavior
C. a site that asks for your personal information to enter a contest to win a new bike
D. a site sponsored by a government agency that gives you factual information
Answer: D
Explanation: You don't need to give money, information, or watch any inappropriate content on the gov website. It's safe and all you do is read.