-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquote.py
More file actions
46 lines (39 loc) · 1.29 KB
/
quote.py
File metadata and controls
46 lines (39 loc) · 1.29 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#! usr/bin/python3
"""
This program prints out a random quote for the user
"""
from random import choice
Quotes=["Make hay while the sun shines","Be Wise",
" Seeth a man diligent,he will serve before kings and not ordinary men",
"Hard work pays","Be Educative"]
ResponseA= input("Do you want to get today's quote? y or n >> " ).lower()
if ResponseA=="y":
quoteA= choice(Quotes)
print(" ")
print("**********************************************")
print(quoteA)
print("**********************************************")
print(" ")
ResponseB = input("Do you want more quotes? y or n >>").lower()
if ResponseB=="y":
quoteB= choice(Quotes)
print(" ")
print("**********************************************")
print(quoteB)
print("**********************************************")
print(" ")
else:
print(" ")
print("**********************************************")
print ("Have a nice day ")
print("**********************************************")
print(" ")
exit
elif ResponseA=="n":
print(" ")
print("**********************************************")
print ("Have a nice day ")
print("**********************************************")
print(" ")
else:
exit