-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10.py
More file actions
51 lines (27 loc) · 907 Bytes
/
10.py
File metadata and controls
51 lines (27 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import random
# stone, paper, scissor
opt = ["stone", "paper", "scissor"]
comp = random.choice(opt)
print(comp)
stone = "stone"
paper = "paper"
scissor = "scissor"
plyr = input("Select your choice stone, paper or scissor\n")
if (plyr == stone and comp == paper):
print("Computer wins! (Paper)")
elif (plyr == stone and comp == scissor):
print("You won! (Scissor)")
elif(plyr == stone and comp == stone):
print("$Draw$")
if (plyr == paper and comp == scissor):
print("Computer wins! (Paper)")
elif (plyr == paper and comp == stone):
print("You won! (Scissor)")
elif(plyr == paper and comp == paper):
print("$Draw$")
if (plyr == scissor and comp == stone):
print("Computer wins! (Paper)")
elif (plyr == scissor and comp == paper):
print("You won! (Scissor)")
elif(plyr == scissor and comp == scissor):
print("$Draw$")