2. Python

1print("hola mundo!")
2print(2 + 3)
3print("2 + 3 = ", 2 + 3)
line that just executed

next line to execute

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

Activity: CodeLens 2.1 (cl_l38_2a)

1def amo_dos_puntos():
2    print("Yo amo:!")
3    print('Dos puntos == ":"')
4
5
6amo_dos_puntos()
line that just executed

next line to execute

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

Activity: CodeLens 2.2 (cl_l38_2b)

1def amo_dos_puntos():
2    print("Yo amo:!")
3    print('Dos puntos == ":"')
4
5
6print(amo_dos_puntos)
7print(print)
line that just executed

next line to execute

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

Activity: CodeLens 2.3 (cl_l38_2c)

1def suma(a, b):
2    return a + b
3
4
5print(suma("aguacate", "jabuticaba"))
6print(suma(2, 3))
7print(suma(3.14, 2.71))
line that just executed

next line to execute

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

Activity: CodeLens 2.4 (cl_l38_2d)

You have attempted 1 of 2 activities on this page