You are an application developer at a software development company called Initech. Initech specializes in meeting the
Fantastic news! We've Found the answer you've been seeking!
Question:
You are an application developer at a software development company called Initech. Initech specializes in meeting the application development needs of small businesses. A local clothing shop called "Dads-R-Us" sells clothes for active dads, like khaki slacks, joggers, and polo shirts. Dads-R-Us would like to add an app to their website that generates "dad jokes". These are clean, G-rated jokes that dads can share with their kids to make them laugh. Your team lead asks you to develop the code for the Dad Joke Generator so she can add it to the Dads-R-Us website.
Instructions
- Create a Python app using the Trinket development environment below. Your app should meet these requirements:
- Your application will display Dad Jokes from a list. Define a list that holds twenty (20) Dad Jokes.
- Define a numeric variable to hold a count of the Dad Jokes.
- Display the count of the Dad Jokes to the user.
- Display at least four Dad Jokes to the user. Use the Python random() function to randomly choose the jokes to display.
- Hint: Check out the "Random Numbers" section.
- Ask the user if they want to see more Dad jokes and get their answer as input.
- If the user's answer is yes, use a loop to repeat the process of retrieving the Dad Jokes from the list and displaying them to the user.
- If the user's answer is no, thank them and exit the program.
Related Book For
Management Accounting Information for Decision-Making and Strategy Execution
ISBN: 978-0137024971
6th Edition
Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young
Posted Date: