Explore Westonci.ca, the top Q&A platform where your questions are answered by professionals and enthusiasts alike. Discover in-depth solutions to your questions from a wide range of experts on our user-friendly Q&A platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

Hello,
It is difficult for me to trouble everyone, but I need a lot of help and I am doing this practically on my own. This is only my second week and a half in a python course. I've tried to type this in python, but I need help, can someone please support me? I am trying to understand how to type my codes in the proper format for the correct output. Thanks truly. Here is the question and the input:
Output range with increment of 5
Write a program whose input is two integers. Output the first integer and subsequent increments of 5 as long as the value is less than or equal to the second integer.
Ex: If the input is:
-15
10
the output is:
-15 -10 -5 0 5 10
Ex: If the second integer is less than the first as in:
20
5
the output is:
Second integer can't be less than the first.

Here is the code I have been inputting in python/python3:
a=int(input ("Enter number 1: "))
b=int(input ("Enter number 2: "))
print(a)
a=a+5
while (a<=b):
print(a)
a=a+5

I wish I could hug whoever helps and say thanks. I'd greatly appreciate anyone's support truly.
Warm regards,
Lily


Sagot :

Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Thanks for stopping by. We strive to provide the best answers for all your questions. See you again soon. We're glad you chose Westonci.ca. Revisit us for updated answers from our knowledgeable team.