-
Notifications
You must be signed in to change notification settings - Fork 0
/
do_a_scare.py
53 lines (45 loc) · 1.12 KB
/
do_a_scare.py
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
52
53
import random
GHOST = """
.-.
(o o) boo!
| O \\
\\ \\
`~~~'
"""
CAT = """
.-.
\\ \\
\\ \\
| |
| |
/\\---/\\ _,---._ | |
/^ ^ \\,' `. ;
( O O ) ;
`.=o=__,' \\
/ _,--.__ \\
/ _ ) ,' `-. `-. \\
/ ,' / ,' \\ \\ \\ \\
/ / / ,' (,_)(,_)
(,; (,,) jrei
"""
BAT = """
mm
/^( )^\\
\\,(..),/
V~~V -AL
"""
ANIMALS = [
('ghost', GHOST, 'boo'),
('black cat', CAT, 'hissssssss'),
('bat', BAT, 'eeeek')
]
def scare(num):
"""pass in an integer (whole number)"""
name, picture, sound = random.choice(ANIMALS)
# print picture num times (after converting num to an integer)
print(int(num)*picture)
print(sound + '! You were scared by ' + num + ' ' + name + 's!' )
print('Happy Friday the 13th!')
while True:
num = input('\nPlease type a ~~spooky~~ number between 1 and 13: ')
scare(num)