This code has no automated tests till now. just solve it and push it on github and share the link to get feedback
The bot will prompt the user to choose a joke category, tell a joke from that category, and then ask if the user wants to hear another joke or exit the program.
A string representing the chosen joke category. The options are "knock-knock", "puns", "one-liners", "random", and "exit".
A string representing the joke from the chosen category or a random category, depending on the user's choice. A prompt asking the user if they want to hear another joke or exit the program.
knock-knock
Knock, knock. Who’s there? Boo. Boo who? Don’t cry, it’s just a joke! Would you like to hear another joke? (y/n)
puns
Why don't scientists trust atoms? Because they make up everything. Would you like to hear another joke? (y/n)
random
Why don't oysters share their pearls? Because they're shellfish. Would you like to hear another joke? (y/n)
exit
Goodbye! Have a nice day.