def list5(x, y, z):
result = []
for i in range(x, y, z):
result.append(i)
return result
Function Call | Return Value | |||
---|---|---|---|---|
list5(0, 5, 2) | → | |||
list5(10, 5, -1) | → | |||
list5(20, 0, -4) | → | |||
list5(10, 5, 2) | → |
Experiment with this code on Gitpod.io