5. Funciones find y replace

1s = "un tigre, dos tigres, tres tigres"
2print(s.find("tigre"))
3print(s.find("tigre", 4))
4print(s.find("tigre", 16))
5print(s.replace("tigre", "gato"))
6s = s.replace("tigre", "gato")
7print(s)
line that just executed

next line to execute

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

Activity: CodeLens 5.1 (cl_l18_5)

You have attempted 1 of 2 activities on this page