1. for == while oculto

1for letra in "aeiou":
2    print(letra)
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)

1texto = "aeiou"
2k = 0
3while k < len(texto):
4    letra = texto[k]
5    print(letra)
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)

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)

1lista = list(range(5))
2k = 0
3while k < len(lista):
4    i = lista[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)

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)

1lista = ["cpbr6", 42, 3.14]
2k = 0
3while k < len(lista):
4    x = lista[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)

You have attempted 1 of 2 activities on this page