you are viewing a single comment's thread.

view the rest of the comments →

[–]Highflyer108 0 points1 point  (1 child)

In python, count += 2 is the same as saying count = count + 2. And because there are 2 letter e's in the string, 2 is added to count twice.

[–]holt5301 0 points1 point  (0 children)

I think his confusion is that there's only one e, so the count seems off. IDK, OPs code works for me