Как печатать все элементы в списке Python
fruits = ["Apple","Orange","Watermelon","cherry"]
for fruit in fruits:
print(fruit)
Programmer of empires
fruits = ["Apple","Orange","Watermelon","cherry"]
for fruit in fruits:
print(fruit)
# list having all elements are strings
strings = ['string1', 'string2', 'string3', 'string4']
for string in strings:
print(string)
# using for loop
scores = [11, 12, 13, 14, 15, 16]
for score in scores:
print(score)
for p in myList:
print p