Cargando el ejercicio…
This is a small exercise in finding a pattern inside a string: the first and last characters matter, but the middle can be anything. Write a function bob_there that takes a string s and looks for a three-character fragment. Return True if there is a pattern b + any character + b anywhere in the string, otherwise return False.
"abcbob"True"b9b"True"aaa"Falsedef bob_there(s: str) -> bool:
Inicia sesión para ver tu historial de envíos
Iniciar sesiónInicia sesión para usar el AI Mentor
Iniciar sesión"abcbob"True"b9b"True"aaa"False"bob"True"bxb"True"b b"True