Hello,
I do not understand why the assert is failing and why it return completely other words :
EXTRA/1
Your result:{"one":1,"two":1,"three":0,"it's":1,"ran":1,"i":0}
Right result:{"it's":1,"ran":1,"i":2}
Fail:popular_words("It's flying from somewhere\nAs fast as it can\nI couldn't keep up with it\nNot if I ran",["it's","ran","i"])
The same code "attached" is return the correct answer in my IDE but a different result on the website.
Any ideas ?
Regards
DaB
Created at: May 6, 2022, 9:38 a.m.; Updated at: May 6, 2022, 11:51 a.m.
The question is resolved.