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 dictprint(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 setupprint(i["punchline"], "\n")#print the punchline
Inspiration:
Inspire some people with these, I guess.
import main as up #importprint(up.get_quote())#get a quoteprint(up.motivate())# Also for quotes, but these quotes are different
Random Task:
Get a random task you need to complete
import main as up # importingprint(up.random_activity())#getting the activity, and printing it!
Dog Images:
import main as upimage = up.dog()# we get the image url
Random Cat Fact:
import main as upprint(up.random_cat_fact())#prints the fact