Skip to content

Instantly share code, notes, and snippets.

@eduolihez
Created April 19, 2023 07:02
Show Gist options
  • Save eduolihez/c85a8ff7d1507bbed1963bf4c35c4f87 to your computer and use it in GitHub Desktop.
Save eduolihez/c85a8ff7d1507bbed1963bf4c35c4f87 to your computer and use it in GitHub Desktop.
# Motivational Quotes Generator in Python
import requests
def get_quote():
response = requests.get("https://api.quotable.io/random")
data = response.json()
quote = data["content"]
author = data["author"]
return f"{quote} - {author}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment