By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

How do I output a list like the interpreter do?

P: n/a
>>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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.