Thursday, February 21, 2019

A funny python library: pyjokes

pyjokes is a funny python library to to tell a random one line jokes for programmers.

To install pyjokes for python 3:
$ pip3 install pyjokes

To install pyjokes for python 2:
$ pip install pyjokes

In python you can get a random joke by calling pyjokes.get_joke()..
Example to try on Python 3 Shell:
>>> import pyjokes
>>> pyjokes.get_joke()


No comments: