View Single Post
  #2 (permalink)  
Old 05-15-2007, 11:35 AM
v0id's Avatar   
v0id v0id is offline
Retired
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,651
Last Blog:
CherryPy(thon)
Rep Power: 29
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

I don't remember if there's such function (I'm a bit rusty), but it can be done in two lines, using a for-loop.

This shows how, using the interpreter:
Code:
>>> the_string = "Hello, World!"
>>> the_list   = []
>>> for each_character in the_string:
	the_list.append(each_character)

	
>>> the_list
['H', 'e', 'l', 'l', 'o', ',', ' ', 'W', 'o', 'r', 'l', 'd', '!']
>>>
__________________
05-03-2007 - 11-13-2008
Reply With Quote