python for looop array value and index
for header, rows in zip(headers, columns):
print("{}: {}".format(header, ", ".join(rows)))
4.5
4
cars = ["tesla", "audio" , "bwm", "VW", "seat"]
for i , value in enumerate(cars):
print(f'value is: {value}, and index = {i}')
Thank you!
4
0
Are there any code examples left?
New code examples in category Python