[Solved] Why does python give me a TypeError for this function? (new to coding) [closed]
You’ve used the same name, list, for both a built-in type and a local variable. Don’t re-use the built-in names. Quoting PEP-8: If a function argument’s name clashes with a reserved keyword, it is generally better to append a single trailing underscore rather than use an abbreviation or spelling corruption. Thus class_ is better than … Read more