Currently I have a working range function that accepts and outputs the first 3 arguments, but I'm lost on how to add the optional 4th argument of a separator/end. I'm not sure if I should be using sep or end.
def Practice(start, stop, step):
for i in range(start, stop+1, step):
if i%step == 0:
print(i, end=' ')
So if a user types in the shell: Practice(4,24,4) it will print: 4 8 12 16 20 24