fruits = ["apple", "orange", "banana", "cherry"]

for afruit in fruits:     # by item
    print(afruit)

fruits = ["apple", "orange", "banana", "cherry"]

for position in range(len(fruits)):     # by index
    print(fruits[position])

for number in range(20):
    if number % 3 == 0:
        print(number)

numbers = [1, 2, 3, 4, 5]
print(numbers)

for i in range(len(numbers)):
    numbers[i] = numbers[i] ** 2

print(numbers)
c2894a3a90b81f468cd65c6e4af7cf6311948ba8
<mask token>

<mask token>
for afruit in fruits:
    print(afruit)
<mask token>
for position in range(len(fruits)):
    print(fruits[position])
for number in range(20):
    if number % 3 == 0:
        print(number)
<mask token>
print(numbers)
for i in range(len(numbers)):
    numbers[i] = numbers[i] ** 2
print(numbers)

fruits = ['apple', 'orange', 'banana', 'cherry']
for afruit in fruits:
    print(afruit)
fruits = ['apple', 'orange', 'banana', 'cherry']
for position in range(len(fruits)):
    print(fruits[position])
for number in range(20):
    if number % 3 == 0:
        print(number)
numbers = [1, 2, 3, 4, 5]
print(numbers)
for i in range(len(numbers)):
    numbers[i] = numbers[i] ** 2
print(numbers)

fruits = ["apple", "orange", "banana", "cherry"]

for afruit in fruits:     # by item
    print(afruit)

fruits = ["apple", "orange", "banana", "cherry"]

for position in range(len(fruits)):     # by index
    print(fruits[position])

for number in range(20):
    if number % 3 == 0:
        print(number)

numbers = [1, 2, 3, 4, 5]
print(numbers)

for i in range(len(numbers)):
    numbers[i] = numbers[i] ** 2

print(numbers)