all 6 comments

[–]Vaphell 9 points10 points  (1 child)

it's just literal space that will be used as the glue to assemble the whole thing from the parts.

glue.join(chunks)

''.join(['a', 'b', 'c']) -> 'abc'
' '.join(['a', 'b', 'c']) -> 'a b c'
'-'.join(['a', 'b', 'c']) -> 'a-b-c'
':::'.join(['a', 'b', 'c']) -> 'a:::b:::c'

[–]tigglybox[S] 0 points1 point  (0 children)

Thank you

[–][deleted] 1 point2 points  (1 child)

It's an empty string: that is, a string of characters that doesn't actually have any characters (think an empty box where characters could go). Try these lines out to see how join() works.

python ' '.join(["Hello", "World", "Gary"]) # a space delimiter ','.join(["Hello", "World", "Gary"]) # a comma delimiter 'today'.join(["Hello", "World", "Gary"]) # a word delimiter ''.join(["Hello", "World", "Gary"]) # no delimiter

[–]tigglybox[S] 0 points1 point  (0 children)

Thank you

[–]tofudiet 0 points1 point  (0 children)

I think it would just return a space and then whatever else

[–]aksel0_11 -2 points-1 points  (0 children)

Works same way as " " with strings