Question: Can you please help me solve this problem using python? In this lab, you will write a program to compare integers with nested if-statements or

Can you please help me solve this problem using python?
In this lab, you will write a program to compare integers with nested if-statements or boolean operators. Objectives: Understand how to switch between the following two approaches: Using nested if-statements Using Boolean operators with if-statements Description In this lab you will prompt the user for 3 integers using 3 different input statements. Then your program should display the largest of the 3 values. Also, it should display the differences between the largest value and the other two values. You will be given the code to input the integers, complete with the type conversion, but don't forget how to do this in case you had to do it on your own. Note: This program can be completed with or without Boolean operators. Your program may be simpler if you use them. For practice, once you have gotten a full score, experiment with doing it both ways. ZyBooks will save your highest submission so there is no harm in trying. Example of a sample run Enter first value: 7 Enter second value: 15 Enter third value: 3 Largest value is: 15 It is 8 more than 7 and 12 more than 3 Enter first value: 7 Enter second value: 7 Enter third value: 2 Largest value is: 7 It is O more than 7 and 5 more than 2 Enter first value: -10 Enter second value: -20 Enter third value: -30 Largest value is: -10 It is 10 more than -20 and 20 more than -30 Hint: If the first value is the largest, it should compare the second value and the third consecutively. If the second value is the largest, it should compare the first value and the third consecutively. And, if the third value is the largest, it should compare the first value and the second consecutively. 301826 1593842
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
