Search
 
SCRIPT & CODE EXAMPLE
 

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))
Comment

PREVIOUS NEXT
Code Example
Python :: deepcopy python 
Python :: flatten list in python 
Python :: django give access to media folder 
Python :: how to hello world in python 
Python :: remove items from list while iterating python 
Python :: pandas unstring list 
Python :: numpy sum 
Python :: python send email from icloud 
Python :: pyplot aera 
Python :: python plot n numbers from normal distribution 
Python :: python random number between 0 and 1 
Python :: python grab results from cursor.execute 
Python :: quotation marks n string 
Python :: Python Print Variable Using the f-string in the print statement 
Python :: length of dictionary python 
Python :: how to extract keys from dictreader python 
Python :: datatime add time in float 
Python :: pandas if nan, then the row above 
Python :: pandas drop 1970 
Python :: python c like struct 
Python :: join two strings python 
Python :: docker run python 
Python :: aws django bucket setting 
Python :: what is tkinter in python 
Python :: python - sending mail 
Python :: save a preprocess text 
Python :: relu python 
Python :: remove deprecation warning python 
Python :: PySimple list of elements 
Python :: open csv in coalb 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =