#Python 🐍 – #pyjokes, jokes as a service

Buy Me A Coffee

Hi !

I’m sure that there is an business scenario where you need to query a database, get a record and show the record value in your app.I only hope that your database is a JOKE DATABASE, because then you can use pyjokes.

One line jokes for programmers (jokes as a service)

And super easy to use. 2 lines in python

import pyjokes
print(pyjokes.get_joke())

Or you can run pyjoke at the command line to get a random joke.

python pyjoke sample

You welcome !

Happy coding!

Greetings

El Bruno

More posts in my blog ElBruno.com.



¿Con ganas de ponerte al día?

En Lemoncode te ofrecemos formación online impartida por profesionales que se baten el cobre en consultoría:

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: