Answers for "python for looop array value and index"

0

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}')
Posted by: Guest on August-11-2021
0

iterate array python with index

for header, rows in zip(headers, columns):
    print("{}: {}".format(header, ", ".join(rows)))
Posted by: Guest on October-13-2020

Python Answers by Framework

Browse Popular Code Answers by Language