One line jokes for programmers
Trying to make your project more interesting or funny? Now, you can add jokes to your project with
pyjokes.
There's basically two functions:
get_joke(language='en', category='neutral')
get_jokes(language='en', category='neutral')
The first one returns a single joke (string), while the second one returns a list of random jokes from a certain category and in a particular language.
Supported languages: English (en), German (de), Spanish (es), Galician (gl), Basque (eu), Italian (it).
Categories: neutral, chuck (yes, Chuck Norris jokes), all, twister (only for German language).
Installation
pip install pyjokes
GitHub
[Tutorial] Python Script to create random jokes using pyjokes
#pyjokes #bullshit