Question: Here is a problem i have with my python coding class could you help me solve it and explain how it was done?: If the
Here is a problem i have with my python coding class could you help me solve it and explain how it was done?:
If the input is or the program works as in the first example, except it calculates and displays
sum, multiple or difference depending on what was chosen. After that, it will display the menu again.
Enter a number:
Enter another number:
The numbers and were entered.
The multiple of the numbers is
Calculate the sum
Calculate the difference
Calculate multiples
Exit the program
Choose an option:
If the input is the program stops execution.
If something else is entered, the menu is displayed again.
The program therefore continues execution until the input to the menu is
Try to duplicate the program text as little as possible. If exactly the same program lines occur
more than once, check if it can be skipped.
FYI the first excersise is this:
Write a program that asks the user to enter two numbers, first one, then the other.
Enter a number:
Enter another number:
Next, the program writes out what the numbers were in one continuous sentence.
The numbers and were entered.
Finally, the program says what the multiple of the numbers is
The multiple of the numbers is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
