Light Mode
Dark Mode
Index error, but returning answer?

Hi All,

Is anyone able to explain why the below code is giving me the index error and in the similar challenge in the 'Initiation' Station the same is not giving the index error?

re.findall(f"(?<=\{start})(.*?)(?=\{end})", text)[0]

Thanks!

Created: Nov. 10, 2022, 11:08 a.m.
Updated: Nov. 10, 2022, 4:12 p.m.
0
11
User avatar
adamzziaja