Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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:
ADD COMMENT
Topic
Name
7+3 =