Question: Write a Python program that asks the user to enter two, even, 2-digit integers (in any order) and then prints (on one line separated by

Write a Python program that asks the user to enter two, even, 2-digit integers (in any order) and then prints (on one line separated by spaces) all odd integers between these inputs in ascending order. A final line should display the sum of the odd integers printed. If user input does not meet the prompts, the user should be notified.

Sample Output 1

Enter an even 2-digit integer 12

Enter another even 2-digit integer 20

13 15 17 19

Odd number total: 64

Sample Output 2

Enter an even 2-digit integer 40

Enter another even 2-digit integer 20

21 23 25 27 29 31 33 35 37 39

Odd number total: 300

Sample Output 3

Enter an even 2-digit integer 11

Enter another even 2-digit integer 20

Bad input(s). Try again

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!