Hello, I'm self-enrolled in the Python 3 course.
I'm trying to print all numbers in a range on the same line, and am using the code:
a = int(input())
b = int(input())
for i in range(a, b + 1):
print(i, end=' ')
the model solution (I used a different code to submit it that did work) is the same exact thing. However, although it works in the model solution, it doesn't work in the student area. This is because of the end = ' ' code, which allows it to print on the same line instead of different ones. Instead of working, the program prints nothing, even though (i triple checked) it is the same exact thing as the model solution.
I need this code to work for a following assignment on the same classroom, but it won't work because of the glitch. I was wondering how this could be fixed? I know that it's not my particular account becuase it's not working for my friend, either.