Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Discover comprehensive answers to your questions from knowledgeable professionals on our user-friendly platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

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 :

Thank you for choosing our service. We're dedicated to providing the best answers for all your questions. Visit us again. Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. Find reliable answers at Westonci.ca. Visit us again for the latest updates and expert advice.