Question: Python Problem 1 (25 points). Three consecutive integers Write a Python program which asks the user to enter three integers x, y, and z, and

Python

Python Problem 1 (25 points). Three consecutive integers Write a Python program

Problem 1 (25 points). Three consecutive integers Write a Python program which asks the user to enter three integers x, y, and z, and checks whether they are consecutive. See the below sample input/output. Sample input/output: Enter the first integer:1 Enter the first integer:3 Enter the first integer:2 Enter the first integer:2 integer:3 Enter the first Yes: consecutive Enter the first integer:1 No: not consecutive Enter the first integer:5 Enter the first integer:5 Enter the first integer: 6 Enter the first integer:7 Enter the first Yes: consecutive integer:7 Enter the first integer: 6 No: not consecutive Any correct solution is worth full grade. Submit your solution in a file called Probl.py, including your name and ID number

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!