how to use for loop to print list code example
Example: print all elements in list python
# using for loop
scores = [11, 12, 13, 14, 15, 16]
for score in scores:
print(score)
# using for loop
scores = [11, 12, 13, 14, 15, 16]
for score in scores:
print(score)