1 def print_range(start, end):
2 # Loop through the numbers from start to end
3 n = start
4 while n <= end:
5 print(n)
6 print_range(1, 5) # Should print 1 2 3 4 5 (each number on its own line)
Line 6 should print "1 2 3 4 5" (each number on its own line), but doesn't. Why is that?