Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python enumerate()

>>> users = ["Test User", "Real User 1", "Real User 2"]
>>> for index, user in enumerate(users):
...     if index == 0:
...         print("Extra verbose output for:", user)
...     print(user)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
5+8 =