-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProject2.py
More file actions
30 lines (25 loc) · 1.01 KB
/
Project2.py
File metadata and controls
30 lines (25 loc) · 1.01 KB
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
"""
|---------------------------------------------< MINI PROJECT => 2 >--------------------------------------------------\
|--------------------------------------------< STONE PAPER SCISSOR >-------------------------------------------------\
"""
import random
print("Here,We have to follow some Rules to play this awesome game :::> ")
print("These are the some keys to be entered by user :------")
print(" For Rock :- R")
print(" For Paper :- P")
print(" For Scissor :- S")
print(" ")
n = input("Enter Your choice:- ")
n.upper()
if n == 'R' or n == 'P' or n == 'S':
ch = ['R', 'P', 'S']
comp = random.choice(ch)
if comp == n:
print("Congratulations u won from me (*_*) ")
print("I am loser and you are winner")
else:
print("Sorry, But you LOST ")
print("you can easily win have a enjoyment here")
print("THANKS FOR PLAYING, KEEP SUPPORTING YOUR CREATER")
else:
print("Sorry,But u entered a wrong choice please try again")