Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

Commit e711351

Browse files
author
Kalpak Take
authored
Add files via upload
1 parent e28e3e1 commit e711351

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

rock,paper,scissor.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import random
2+
while 2 == 2:
3+
print('--------------------------------------------------------------')
4+
get_again = raw_input('Enter rock paper or scissor : ')
5+
make_use = random.choice(['rock','paper','scissor'])
6+
print('--------------------------------------------------------------')
7+
print(make_use)
8+
print('--------------------------------------------------------------')
9+
if get_again == 'rock' and make_use == 'paper':
10+
print('computer wins! You "LOSE" ')
11+
print('--------------------------------------------------------------')
12+
continue
13+
elif get_again == 'rock' and make_use == 'scissor':
14+
print('computer loses You win!')
15+
print('--------------------------------------------------------------')
16+
break
17+
elif get_again == 'rock' and make_use == 'rock':
18+
print('It\'s a tie ! try again !')
19+
print('--------------------------------------------------------------')
20+
continue
21+
elif get_again == 'paper' and make_use == 'paper':
22+
print('It\'s a tie ! try again !')
23+
print('--------------------------------------------------------------')
24+
continue
25+
elif get_again == 'scissor' and make_use == 'scissor':
26+
print('It\'s a tie ! try again !')
27+
print('--------------------------------------------------------------')
28+
continue
29+
elif get_again == 'paper' and make_use == 'scissor':
30+
print('computer wins! You "LOSE" ')
31+
print('--------------------------------------------------------------')
32+
continue
33+
elif get_again == 'scissor' and make_use == 'paper':
34+
print('computer loses You win!')
35+
print('--------------------------------------------------------------')
36+
break
37+
elif get_again == 'paper' and make_use == 'rock':
38+
print('computer wins! You "LOSE" ')
39+
print('--------------------------------------------------------------')
40+
continue
41+
elif get_again == 'scissor' and make_use == 'rock':
42+
print('computer wins You "LOSE" ')
43+
print('--------------------------------------------------------------')
44+
continue
45+
else :
46+
print('Invalid input: Try again')
47+
continue
48+
49+

take-a-break.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import webbrowser
2+
import time
3+
4+
5+
6+
make_use = 1
7+
8+
while make_use < 3 :
9+
time.sleep(10)
10+
webbrowser.open("https://www.youtube.com/results?search_query=comedy+pranks")
11+
make_use = make_use + 1

0 commit comments

Comments
 (0)