A function that projects text for a short dad joke.
The good people at ICanHazDadJoke provide a simple API to retrieve a random joke from their database. https://icanhazdadjoke.com
Developed and tested using Python 3.10.5
Just copy paste the code, make sure you place the import statement appropriately in your code.
Meh. I use this for my own projects. There are so many of this exact function out there but they get wordy or don't comply with ICanHazDadJoke's request for the User Client.
The script is provided as is. This project is licensed under Unlicense license. This license does not require you to take the license with you to your project.