4. Verificación parcial de strings

1archivo = "prog.py"
2print(archivo.startswith("p"))
3print(archivo.endswith("p"))
4contestar = "Si"
5print(contestar.lower())
6print(contestar.upper())
7print(contestar.lower() in "si no yes no")
line that just executed

next line to execute

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

Activity: CodeLens 4.1 (cl_l18_4)

You have attempted 1 of 2 activities on this page