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