import requests
def get_random_quote():
response = requests.get("https://api.quotable.io/random")
if response.status_code == 200:
data = response.json()
return f"{data['content']} - {data['author']}"
else:
return "Failed to fetch a quote."
print(get_random_quote())
## May all beings have happy minds. - The Buddha