Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create a range of numbers in python

list(range(10))
# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

list(range(0,10))
# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

list(range(0,10,2))
# [0, 2, 4, 6, 8]
 
PREVIOUS NEXT
Tagged: #create #range #numbers #python
ADD COMMENT
Topic
Name
6+7 =