5. Los datos de Python son inteligentes

1texto = "anita lava la tina"
2print(texto.upper())
3print(texto.split())
line that just executed

next line to execute

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

Activity: CodeLens 5.1 (cl_l33_5a)

5.1. Método find

  • Método find para strings

1texto = "Palmeras"
2print(texto.find("P"))
3print(texto.find("lmer"))
4print(texto.find("Pa"))
line that just executed

next line to execute

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

Activity: CodeLens 5.1.1 (cl_l33_5b)

Activity: 5.1.2 ActiveCode (ac_l33_5)

You have attempted 1 of 3 activities on this page