repl.it
@aurora_Rod/

Rock Paper Scissors

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import random

print('Welcome to Poppy\'s ROCK PAPER SCISSORS')

print ('1. rock')
print ('2. paper')
print ('3. scissors')

user_choice = int (input ('Pick your battle ') )

cpu_choice = random.randint(1,3)

if (user_choice == cpu_choice):
	print ('It is a tie!')
elif (user_choice == 1 and cpu_choice ==2):
	print ('CPU chose paper, you lose')
elif (user_choice == 1 and cpu_choice == 3):
	print ()
Fetching token
?