How can I convert this string to list of lists?

Posted by Phrixus on Stack Overflow See other posts from Stack Overflow or by Phrixus
Published on 2010-04-15T09:47:38Z Indexed on 2010/04/15 9:53 UTC
Read the original article Hit count: 175

Filed under:
|
|

Hi, what I'm trying to do is..

if a user types in [[0,0,0], [0,0,1], [1,1,0]] and press enter, the program should convert this string to several lists; one list holding [0][0][0], other for [0][0][1], and the last list for [1][1][0]

I thought tuple thing would work out but no luck... :(

I started phython yesterday -- (I'm C / C++ guy.) and cannot use the full advantages of this language...

Does python have a good way to handle this? I need help~ :'(

© Stack Overflow or respective owner

Related posts about python

Related posts about tuple