in lesson ‘Passing a range into a function’ there is 3 type of range() function -
range(start, stop, step)
what this ‘step’ doing? I can not understand what ‘step’ does in function. we have an example: “range (1, 6, 3) # => [1, 4]” why only returns 1 and 4? can anybody explain it in more detail?
I can not understand this sentence: "In all cases, the range () function returns a list of numbers from the start up to (but not including) stop. Each item increases by step. If omitted, start defaults to 0 and step defaults to 1. "