"Harlin Seritt" <[EMAIL PROTECTED]> writes:
> groups = {'IRISH' : 'green', 'AMERICAN' : 'blue'}
>
> I want to add another key: 'ITALIAN' : 'orange'
>
> How do I append this to 'groups'?
Dictionary items have no implicit sequence, so you don't "append" to
one.
Assigning any value to a key in th
Harlin Seritt enlightened us with:
> I have some code here:
>
> groups = {'IRISH' : 'green', 'AMERICAN' : 'blue'}
>
> I want to add another key: 'ITALIAN' : 'orange'
>
> How do I append this to 'groups'?
groups['ITALIAN'] = 'orange'
Sybren
--
The problem with the world is stupidity. Not saying t
> groups = {'IRISH' : 'green', 'AMERICAN' : 'blue'}
>
> I want to add another key: 'ITALIAN' : 'orange'
>
> How do I append this to 'groups'?
groups['ITALIAN'] = 'orange'
as described at
http://docs.python.org/tut/node7.html#SECTION00750
-tkc
--
http://mail.python.org/mail
I have some code here:
groups = {'IRISH' : 'green', 'AMERICAN' : 'blue'}
I want to add another key: 'ITALIAN' : 'orange'
How do I append this to 'groups'?
Thanks,
Harlin Seritt
--
http://mail.python.org/mailman/listinfo/python-list