We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1499146 commit 8e1a3cfCopy full SHA for 8e1a3cf
AutomationScripts/Quotes Automation/quotes_automation.py
@@ -1,15 +1,21 @@
1
+# install quote library using pip install quote
2
+# import quote from quote library
3
from quote import quote
4
import random
5
6
try:
7
print("Tell me the author or person name?")
8
9
+ # taking the name as input to get the quotes related to that author/person
10
q_author = input()
11
12
+ # getting the quotes into quotes variable
13
quotes = quote(q_author)
14
15
+ # selecting a random quote from multiple quotes
16
quote_no = random.randint(1, len(quotes))
17
18
+ # displaying the quote with author name
19
print("Author: ", quotes[quote_no]['author'])
20
print("-->", quotes[quote_no]['quote'])
21
0 commit comments