Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to create a list of even numbers in python

start_ = 0 # start from 
list_size = 10 # end at 
even_list = [i*2 for i in range(start_ , list_size)] # even numbers list
print(even_list) # printing list
 
PREVIOUS NEXT
Tagged: #create #list #numbers #python
ADD COMMENT
Topic
Name
7+5 =