Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 0 2 ( 1 0 points ) Write the following Python program: Your program should ask the user to input two integer numbers: start

Task 02(10 points)
Write the following Python program:
Your program should ask the user to input two integer numbers: start (S) and end (E).
The range of numbers will be from S to E(inclusive).
The program should first print all the odd numbers from S to E, each on a new line.
Next, the program should print all the even numbers from S to E, each on a new line.
If a user enters something that's not an integer number for S or E, your program should
handle this exception and print a warning message: "Invalid input, please enter integer
numbers only".
Here is a screenshot of the expected behavior, testing all scenarios described above. Replicate
this functionality in your script, including the formatting and outputs of all messages. The
program must work for any starting or ending integer values that the user enters.
eric@iftlinux: / lab_g$ ./lab_g_task_02_sdevil.py
Enter a start integer: 10
Enter an end integer: 33
Odd numbers from 10 to 33 :
image text in transcribed

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

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions