PY
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
# Created by Coder
import urllib.request
import json
api=urllib.request.urlopen("https://api.quotable.io/random")
api_data=api.read()
api_data_info=api_data.decode()
a = json.loads(api_data_info)
print("Topic - {}".format(a["tags"][0]))
print("---------------------------------\n")
print(a["content"])
print("\n---------------------------------\n")
print("-- By {}".format(a["author"]))
"""
I have learn this by mistake 😂. Well learning never waste.
credits goes to greeksforgreeks, w3hSchool , realtimephython,tutorialpoints Where anyone can learn anythings in python..
My Message of all of you Learn and learn and learn.....
not saying much😂....
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run