transform lists in strings??

James J. Besemer jb at cascade-sys.com
Tue Oct 29 19:24:18 CET 2002


jubafre at brturbo.com wrote:
> i have this list:
> x=['d', 'f', 'd', 's', 'f', 'd', 's', 'f', 'd', 's', 'f', 'd', 's', '\\(', '\\)', '\\^', '\\|', ';', '\\.', '\\$']
> 
> i want to transform x in a string like this: dfdsfdsfdsfds\\(\\)\\^\\|;\\\\$
> 
> How can i do this????/


	"".join(x)


> 	
> 	
> Juliano Freitas
> www.gebrasil.hpg.com.br 


-- 
James J. Besemer		503-280-0838 voice
2727 NE Skidmore St.		503-280-0375 fax
Portland, Oregon 97211-6557	mailto:jb at cascade-sys.com
				http://cascade-sys.com	






More information about the Python-list mailing list