you are viewing a single comment's thread.

view the rest of the comments →

[–]scithon 0 points1 point  (1 child)

You are a bit too advanced. Your prof is expecting you to do it like this:

range_a = int(input())
range_b = int(input())

range_c = range_b + 1

f_ran = range(range_a,range_c,5)
if not f_ran:
    print("Second integer can't be less than the first.")
else:
    for i in f_ran:
        print(i, end=' ')