import random
rock,paper,scissors = 1,2,3
choice = int(input("Please choose 1 2 or 3: "))
computer = random.randint(1,3)
player_won = False
draw = False
if choice == computer:
draw = True
elif choice == 1 and computer == 3:
player_won = True
elif choice == 2 and computer == 1:
player_won = True
elif choice == 3 and computer == 2:
player_won = True
if player_won:
print("You won!")
elif not player_won and not draw:
print("The computer won!")
else:
print("It's a draw!")
First, I recommend importing at the beginning of your program. Also, you can combine all your same datatype variables in one line. You also need to cast your user choice to an integer so you can compare it with the computer's choice. I wrote the if, elif, and else statements using a boolean variable. I simply wrote all the possibilities that would result in the player winning and this would result in the player_won variable being true. If this is the case, we print to the console, "You won!"
.png are for photos and .exe are for programs.
Answer:
1) R<u>easoning</u>
<u>2)Nonverbal</u>
<u>3)Generating solutions.</u>
<u>4)Decision making</u>.
<u>--------------------------------------</u>
Robert is reviewing complex information and data concerning a new product launch to determine the cause of some product failures. He is primarily using <u>reasoning</u> skills.
Reasoning through a problem requires an understanding between verbal and <u>nonverbal</u> ideas.
When you use reasoning skills and past experience to brainstorm ideas you are <u>generating solutions.</u>
When you narrow down solution ideas, then select the best one, you are engaging in <u>decision making</u>.
<u>OAmalOHopeO</u>
Digital signals (usually binary coded) can include extra information that can be used for error detection or even correction. This allows recovery of the original signal, either by requesting retransmission or by directly correcting the error.
<span>analog signals can't include any extra information needed for this purpose. it is impossible to distinguish an error from the original data.
cited:</span>http://www.answers.com/Q/Which_has_greater_resistance_to_transmission_errors_Binary_signaling_or_Ana...