basic python list/dict/key question/issues..

B

bruce

Hi..

quite new to python, and have a couple of basic question:

i have
("term":["1","2","3"])

as i understand it, this is a list, yes/no?

how can i represent this as a dict/list?

i've got a few of these that i'm trying to deal with..

thanks
 
R

Roger

Hi..

quite new to python, and have a couple of basic question:

i have
 ("term":["1","2","3"])

as i understand it, this is a list, yes/no?

how can i represent this as a dict/list?

i've got a few of these that i'm trying to deal with..

thanks
x = {"term":["1","2","3"]} is a dictionary and the value of the key
"term" is a list.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,299
Messages
2,571,546
Members
48,300
Latest member
Markwen49

Latest Threads

Top