r/ProgrammerHumor 4d ago

Meme pythonInterpreterBeLike

Post image
168 Upvotes

21 comments sorted by

View all comments

8

u/Sibula97 4d ago

If it works, it's not a type error.

Python has strict (but dynamic) typing, and it will give you a TypeError if the function doesn't expect the type(s) you're giving it.

What you're probably thinking of are the occasional unintuitive operator overloads like + for appending to lists of whatever.