[Tutor] understanding join

Steve Poe steve.poe at gmail.com
Wed Jul 30 23:27:45 CEST 2008

Hi tutor list,

Just trying to add some clarity to the built-in function strings using  
join. The Python help
screen says it returns a string which is a concatenation of strings in  
sequence. I am concatenating
the string I am working on that maybe an issue of its own.

Here's my example:

string ='ab'

so, if I type:

print  string.join(string)


but if string is 'abc'

print string.join(string)

print string ='a' returns on a in this example, whit string='a '  
returns aa. So, I am not catching
the pattern.



More information about the Tutor mailing list