In Python, create a program in Jython IDE (https://www.jython.org/download) or online IDE (https://repl.it/languages/python) that meets the following requirements:
Take two integers from the user. (Be sure to check for integer. If input is not an integer, shows an error message.
Save the lower number as x.
Save the largest integer as y.
Write a loop that counts from x to y by twos.
Print out the values of that loop using the Print function in Python.
Write another code section that adds x and y, and saves the value as Z.
Print out the values of Z using the Print function in Python.
For example: (integer inputs)
Enter first number:
12
Enter second number:
4
Increment by 2
4
6
8
10
12
sum is 16
For example: (non-integer input)
Enter first number:
12
Enter second number:
abc
Not an integer value…Good Bye
Provide the code and take a screenshot of the output, then paste the screenshot(s) into a Microsoft® Word document.
Review Chapters 6 and 11 of Python for Everyone if you have additional questions on creating a program in Python
“Get 20% OFF on a Similar Assignment!! Place Your Order and Use this Coupon Code: SUPER20”
Using Loops In Python was first posted on April 5, 2020 at 10:22 pm.©2020 “Buy Custom Essays”. Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at ukbestwriting@gmail.com
What Students Are Saying About Us
.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐"Honestly, I was afraid to send my paper to you, but splendidwritings.com proved they are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 14***| Rating: ⭐⭐⭐⭐⭐
"The company has some nice prices and good content. I ordered a term paper here and got a very good one. I'll keep ordering from this website."