[Tutor] converting list to string

Scott syrinx@simplecom.net
Thu, 22 Mar 2001 21:42:20 -0600


Please forgive this question, but, I thought this:

	x =3D ['h', 'e', 'l', 'l', 'o']
	print str(x)

would print:

	hello

instead I get

	['h', 'e', 'l', 'l', 'o']

What am I doing wrong?  I realize it's a silly question, but these
immutable strings just aren't being kind to me.  :-(

What's the correct way to get a string from a list?  Thanks.