1. for == while hidden

1for letter in "aeiou":
2    print(letter)
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 1.1 (cl_l20_1a_en)

1text = "aeiou"
2k = 0
3while k < len(text):
4    letter = text[k]
5    print(letter)
6    k = k + 1
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 1.2 (cl_l20_1b_en)

1for i in range(5):
2    print(i)
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 1.3 (cl_l20_1c_en)

1list = list(range(5))
2k = 0
3while k < len(list):
4    i = list[k]
5    print(i)
6    k = k + 1
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 1.4 (cl_l20_1d_en)

1for x in ["cpbr6", 42, 3.14]:
2    print(x)
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 1.5 (cl_l20_1e_en)

1list = ["cpbr6", 42, 3.14]
2k = 0
3while k < len(list):
4    x = list[k]
5    print(x)
6    k = k + 1
line that just executed

next line to execute

Print output (drag lower right corner to resize)
Frames
Objects

Activity: CodeLens 1.6 (cl_l20_1f_en)

You have attempted 1 of 2 activities on this page