[Tutor] Turning a string into a tuple?

Andrei Kulakov ak@silmarill.org
Thu, 27 Sep 2001 12:42:01 -0400


On Thu, Sep 27, 2001 at 09:33:10AM -0700, Danny Yoo wrote:
> On Thu, 27 Sep 2001, David L. Lerner wrote:
> 
> > The eval() statement!!!
> > 
> >  eval ("['Alda', 11, 9, 6, 'Trey', 10, 12]")
> > 
> > gives me:
> > 
> > ['Alda', 11, 9, 6, 'Trey', 10, 12]
> > 
> > I found this five minutes after asking.  Thank you for your time.
> > 
> > Is there a searchable index to the python tutor list?

By the way, it's not a tuple, it's a list. Lists are enclosed in square
brackets, tuples in parenthesis: (1,2,3) - a tuple.

- Andrei 

-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org