Answer:
true
Explanation:
encryption is when you scramble the contents of information
Not sure in what environment your asking for, but in C programming, %d is an integer (basically a number), %c is a character, that is a single alphanumeric character, where as %s is a series of alphanumeric characters, in programming %s is actually just an array of characters (so multiple %c), but don't worry about that to much.
Examples in c.
int number = 1;
char character = "c"; (numbers (integers) can be characters)
char string[5] = "abcd"; ([5] implies 5 characters, here there are 4, that is because an invisible character exists known as a "null terminator" (\0).
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!"
I don’t no it brother n I was searching for this answer can u plz tell me