Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment # 4: Display a random proverb Please Use pythone to make the code Create an application that outputs a proverb upon request. Find 7

Assignment # 4: Display a random proverb

Please Use pythone to make the code

Create an application that outputs a proverb upon request.

Find 7 proverbs, wise sayings, or quotes

Store your proverbs in an if-elif-else decision structure (see below)

Your application should locate the corresponding proverb

Print the proverb and its explanation to the screen, each on a separate line.

Write a welcome message that greets the user and explains how the program works

Ask your user to enter a positive integer.

Echo back the users choice for example, You entered 93

Use %7 to convert the integer to a number between 1 and 7 (see pages 8-9 above and page 22 in our text)

Use try-except to protect against bad input.

Try-except can be added after the rest of your program is working.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions