how to loop through files in a list code example
Example 1: python loop through list
list = [1, 3, 6, 9, 12]
for i in list:
print(i)
Example 2: loop through arrays in es6
var sandwiches = [
'tuna',
'ham',
'turkey',
'pb&j'
];
sandwiches.forEach(function (sandwich, index) {
console.log(index);
console.log(sandwich);
});
// returns 0, "tuna", 1, "ham", 2, "turkey", 3, "pb&j"