forked from BeaverHacks/hacktoberfest-workshop-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfortune.py
37 lines (34 loc) · 1.12 KB
/
fortune.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
from random import randint
fortunes = [
"The princess is in another castle", # Adam
"The future looks bright!", # jesse
"Keep up the hard work", # jesse
"Remember to use Git Bash for workshops", # jesse
"Get good sleep and drink lots of water", # Andrew
"¯\\_(ツ)_/¯", # jesse
"Jesse rocks! Loving the workshop.", # Sora
"Today you will meet someone that will impact your entire existance, pay attention", # vinny
"new fortune", #greg
"Every man is the architect of his own fortune",
"Fortune favors the brave",
"When fortune knocks open the door"
]
print("""
* .
' + ___ @ .
.-" __"-. +
* /:.'`__`'.\\ '
. |:: .'_ `. :| *
@ |:: '._' : :| .
+ \\:'.__.' :/ '
/`-...-'\\ ' +
' jgs / \\ . @
* `-.,___,.-'
""")
# source: http://www.oocities.org/spunk1111/mythical.htm#crystal
print("Enter any key to get a fortune, or q to quit:")
user_input = input()
while user_input is not "q" and user_input is not "Q":
random_index = randint(0, len(fortunes) - 1)
print(fortunes[random_index])
user_input = input()