• between_markers

 

I would like to give some feedback about ...

From: https://py.checkio.org/mission/between-markers/solve/

HTTP_USER_AGENT:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36

hello, i don't understand where is the problem with my code: def between_markers(text: str, begin: str, end: str) -> str: return text[text.index(begin)+1:text.index(end)]

Your result:"title>My new site" markers can be longer than one symbol Right result:"My new site" Fail:between_markers("<head><title>My new site</title></head>","<title>","</title>")