Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily authored and Emily committed Oct 14, 2017
0 parents commit aedca5c
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
53 changes: 53 additions & 0 deletions do_a_scare.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,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)

0 comments on commit aedca5c

Please sign in to comment.