Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

making your own range function with step in python

# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A

def range_with_step(start_num,end_num,step_num=1):
    sequence2 = [start_num]
    while start_num < end_num:
        start_num += step_num
        sequence2.append(start_num)
    return sequence2
print(range_with_step(0,6,3))
 
PREVIOUS NEXT
Tagged: #making #range #function #step #python
ADD COMMENT
Topic
Name
6+5 =