Invalid Syntax and I don't know why

The text under each def statement should be indented.

The last line refers to countlist which is not defined, and f which is defined inside a different function.

Leave a Comment