For Loops
Lesson 22Author : 🦒
Last Updated : October, 2017
Code
for index in range(5):
print(index)
lucky_nums = [4, 8, 15, 16, 23, 42]
for lucky_num in lucky_nums:
print(lucky_num)
for letter in "Giraffe":
print(letter)
for index in range(5):
print(index)
lucky_nums = [4, 8, 15, 16, 23, 42]
for lucky_num in lucky_nums:
print(lucky_num)
for letter in "Giraffe":
print(letter)