how to write range function in python with for loop code example Example: for i in range start for i in range([start], stop[, step])