Sign InCoursewareNuggetsTutorials CoursesCodePad

Joke Generator

Write a program that generates random jokes. Use a list to store at least ten jokes in a format of questions and answers, as the example below.

Q: "What bow can't be tied?"  
A: "A rainbow!"

Your program should print the question part first. Prompt the users to hit a button when they are ready for the answer. Then print the answer part. Be creative with your joke selections and make it fun!

© CS Wonders·About·Gallery·Fun Facts·Cheatsheet