1👍
✅
Your .count()
is in the wrong place. It needs to be after the second close parenthesis, not the third.
As it is, you are calling it on the result of append
, which is always None.
Source:stackexchange.com