structure in Python

Terry Reedy tjreedy at udel.edu
Mon Oct 20 23:10:51 EDT 2003


"Alberto Vera" <avera at coes.org.pe> wrote in message
news:mailman.279.1066691640.2192.python-list at python.org...
Hello:
I have the next structure:
[key1,value1,value2]

['A',1,5]
['B',6,7]

How Can I make it using Python?

How Can I update the value of 6?
How Can I insert a key called "C" and its values?
How Can I delete a key called "B"?
How Can I search a key called "A"(parameter) and get its values?
-------------

Have you done the Python tutorial or other beginner material?
Either way, pay more attention to parts about dictionaries.

TJR






More information about the Python-list mailing list