Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python for looop array value and index

cars = ["tesla", "audio" , "bwm", "VW", "seat"]

for i , value in enumerate(cars):
  print(f'value is: {value}, and index = {i}')
 
PREVIOUS NEXT
Tagged: #python #looop #array #index
ADD COMMENT
Topic
Name
7+9 =