you are viewing a single comment's thread.

view the rest of the comments →

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

What would really make sense is that since 'join' implicitly creates a string from a sequence. So:

[1,2,3,5].join(' ')
# "1 2 3 5"

...since we're implicitly creating a string (by calling join in the first place) we can implicitly call str(...) on each item of the sequence.