can you give me example code for Python?
start = #here your start point
end = #here your end point(not inclusive)
interval = #here interval between numbers
print(list(range(start, end, interval)))
In your case:
print(list(range(20, 220, 20))
output: [20, 40, 60, 80, 100, 120, 140, 160, 180, 200]
p.s. I guess it misprint and your end point 200, if not just switch number
Comments
Leave a comment