DEV Community

Discussion on: What simple things annoy you about your favourite programming languages?

Collapse
 
grahamlyons profile image
Graham Lyons

It's because the argument to join can be anything that you can iterate over e.g. list, tuple, array etc. Python tends to make functions take duck-typed arguments rather than having interface-style compatibility on types.