Skip to content

Commit 5d8eb9e

Browse files
authored
code for quotes automation
1 parent 4ff134a commit 5d8eb9e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
from quote import quote
2+
import random
3+
4+
try:
5+
print("Tell me the author or person name?")
6+
7+
q_author = input()
8+
9+
quotes = quote(q_author)
10+
11+
quote_no = random.randint(1, len(quotes))
12+
13+
print("Author: ", quotes[quote_no]['author'])
14+
print("-->", quotes[quote_no]['quote'])
15+
16+
except Exception as e:
17+
pass

0 commit comments

Comments
 (0)