Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: merge the key-value pairs of two dictionaries

Python: merge the key-value pairs of two dictionaries
{filelink=16011}

even  =   [2, 4, 6, 8]
odd=   [1, 3, 5, 7, 9]
dict={'even':even, 'odd':odd}
params = {'Font': 12, 'Style': 'Bras', 'Color': [255, 0, 255]}
# Combining the dictionaries
params.update(dict)
print params

Users who found this page were searching for:

  • mysearchdial
  • How do I reverse the key value pairs in python
  • python key value pair
  • python .count
  • how to read gmail inbox using ja
  • python merge two dictionaries
  • how to add a menu to jframe?
  • python merge two dictionaries by key
  • read email with python
  • python merge data dictionary

No comments yet.

Leave a Comment