469,338 Members | 8,095 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

How do I output a list like the interpreter do?

>>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.

May 4 '07 #1
3 895
On May 3, 8:00 pm, noagbodjivic...@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...

May 4 '07 #2
On May 3, 8:01 pm, noagbodjivic...@gmail.com wrote:
On May 3, 8:00 pm, noagbodjivic...@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?

May 4 '07 #3
On May 3, 8:24 pm, noagbodjivic...@gmail.com wrote:
On May 3, 8:01 pm, noagbodjivic...@gmail.com wrote:
On May 3, 8:00 pm, noagbodjivic...@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?

Nevermind...

May 4 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Jay Davis | last post: by
17 posts views Thread by Thomas M. | last post: by
1 post views Thread by yawgmoth7 | last post: by
20 posts views Thread by Ilias Lazaridis | last post: by
5 posts views Thread by nkomli | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.