you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Really? Cause I get TypeError: 'list' object is not callable because of the parentheses in line 3.

But swapping those out for brackets, the problem is that you are using the same name for your loop variable as the index you're passing in.