How do I output a list like the interpreter do?

noagbodjivictor at gmail.com noagbodjivictor at gmail.com
Thu May 3 20:24:11 EDT 2007


On May 3, 8:01 pm, noagbodjivic... at gmail.com wrote:
> On May 3, 8:00 pm, noagbodjivic... at gmail.com wrote:
>
> > >>> s = ['a','b']
> > >>> s
> > ['a', 'b']
>
> > This is what I want so that I can put it in a module then import that
> > module to work with my variable.
>
> Sorry for that typo in the title...

I found a was using str(list). Do you know how to get rid of the
surrounding quotes?




More information about the Python-list mailing list