Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

destructuring in for loops python

example_list = ["A", "B", "C"]

for counter, letter in enumerate(example_list):
	print(counter, letter)

# Output -
# 0 A
# 1 B
# 2 C
Source by blog.teclado.com #
 
PREVIOUS NEXT
Tagged: #destructuring #loops #python
ADD COMMENT
Topic
Name
3+5 =