Mega Code Archive

 
Categories / Python Tutorial / List
 

Another parameter, which normally is left implicit, is the step length

numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] numbers[0:10:1]