4. if / else

1anio_creacion = 1
2if anio_creacion <= 3:
3    print("Su auto es nuevo")
4if anio_creacion > 3:
5    print("Su auto es viejo")
line that just executed

next line to execute

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

Activity: CodeLens 4.1 (cl_l10_4a)

1anio_creacion = 1
2if anio_creacion <= 3:
3    print("Su auto es nuevo")
4else:
5    print("Su auto es viejo")
line that just executed

next line to execute

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

Activity: CodeLens 4.2 (cl_l10_4b)

You have attempted 1 of 2 activities on this page