Joke 101
This page covers how jokes work. The entire doc is found on Joke page. This page only covers the Joke.joke
attribute.
Type of joke
The type of joke can be two part or single. Two part jokes are like this:
{
'setup': "So what's a set of predefined steps the government might take to preserve the environment?",
'delivery': 'An Al-Gore-ithm.'
}
As you notice, it is a dictionary. It has two keys setup
and delivery
.
And here's a single type joke:
Java is like Alzheimer's, it starts off slow, but eventually, your memory is gone.
It is returned as a normal string.
Last updated
Was this helpful?