Using the basic features like Jokes, Quotes, Dogs, and more
Methods
Jokes:
Getting and printing a single joke:
import main as up #import the file!
joke = up.jokes() # we get the joke in the form of a dict
print(f"{joke['setup']}\n{joke['punchline']}") # We print the setup and the punchline - completing the joke
1 joke is not enough? Well, you can either go small or go big - and by big I mean 10 jokes.
import main as ap # import the file!
joke = up.ten_jokes() # get 10 jokes in the form of a dict!
for i in joke:
print(i["setup"]) #print the setup
print(i["punchline"], "\n") #print the punchline
Inspiration:
Inspire some people with these, I guess.
import main as up #import
print(up.get_quote()) #get a quote
print(up.motivate()) # Also for quotes, but these quotes are different
Random Task:
Get a random task you need to complete
import main as up # importing
print(up.random_activity()) #getting the activity, and printing it!
Dog Images:
import main as up
image = up.dog() # we get the image url
Random Cat Fact:
import main as up
print(up.random_cat_fact()) #prints the fact