Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

len range

>>> a = ['Mary', 'had', 'a', 'little', 'lamb']
>>> for i in range(len(a)):
...     print(i, a[i])
...
0 Mary
1 had
2 a
3 little
4 lamb
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #len #range
ADD COMMENT
Topic
Name
5+2 =