Hi,
So I'm very new to this, but I feel like I'm generally grasping things as I go, albeit slowly.
However, I don't understand why it is that using str.count() on the full body of text will return counts on partials (e.g. "near" run through the 1st test in this exercise will return a count of '1' due to the existence of "nearly"), but running the same function on the list(str.split()) only seems to count exact matches.
I would be grateful if someone could explain this.
Thanks.
Created at: 2018/06/09 04:20; Updated at: 2019/12/23 20:59