5. Estructuras anidadas

1minutos = 800
2if minutos < 200:
3    precio = 0.20
4else:
5    if minutos <= 400:
6        precio = 0.18
7    else:
8        precio = 0.15
9print("Cuenta telefonica : $%6.2f" % (minutos * precio))
line that just executed

next line to execute

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

Activity: CodeLens 5.1 (cl_l10_5a)

1minutos = 1000
2if minutos < 200:
3    precio = 0.2
4else:
5    if minutos <= 400:
6        precio = 0.18
7    else:
8        if minutos <= 800:
9            precio = 0.15
10        else:
11            precio = 0.08
12print("Cuenta telefonica : $%6.2f" % (minutos * precio))
line that just executed

next line to execute

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

Activity: CodeLens 5.2 (cl_l10_5b)

You have attempted 1 of 2 activities on this page