Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ random_quotes
Function
random_quotes
web_programming/fetch_quotes.py:27–28 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
25
26
27
def
random_quotes() -> list:
28
return
httpx.get(API_ENDPOINT_URL +
"/random"
, timeout=10).json()
29
30
31
if
__name__ ==
"__main__"
:
Callers
1
fetch_quotes.py
File · 0.85
Calls
2
json
Method · 0.80
get
Method · 0.45
Tested by
no test coverage detected