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:
Post a Comment