Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to skip number in while loop python

def skip_down(num, skip):
    count = 0
    lst = [0]
    while count< num:
        count = count + skip
        lst.append(count)
    return lst
print(skip_down(10, 3))
 
PREVIOUS NEXT
Tagged: #skip #number #loop #python
ADD COMMENT
Topic
Name
6+3 =