Question: Python Write a program which gives the option between doing 3 things: 1) Add two numbers 2) Multiply three numbers 3) Multiply a number and

Python

Write a program which gives the option between doing 3 things:

1) Add two numbers

2) Multiply three numbers

3) Multiply a number and a string

Ask the user to choose an option. Output Invalid option if the user enters something apart from 1, 2 or 3. Otherwise depending on what the user enters ask the user again for inputs to perform the required choice and output the answer.

Sample program output 1: You can choose between: 1) Adding two numbers 2) Multiplying three numbers 3) Multiplying a number and a string Please choose an option: 2 Please enter number 1: 2 Please enter number 2: 3 Please enter number 3: 5 The answer is 30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!