Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset
Comments Off

Python: How to change dictionary entry

Your ads will be inserted here by

Easy AdSense.

Please go to the plugin admin page to paste your ad code.

Python: How to change dictionary entry
{filelink=15993}

# Define a dictionary
con_str = {"host":"127.0.0.1", "database":"mysql", "user":"root", "pwd":"mysql"}
print con_str
# update entry
con_str['host'] = 'localhost'
# print new values
print con_str

Users who found this page were searching for:

  • changing dictionary keys python
  • how to edit a dictionary python
  • pyton changing aray entrit
  • how to change key pair in dictionary in python
  • how change the elements in a dictionary python
  • python dictionary change
  • change dictionaries in python
  • how to change a key in a dictionary in python
  • python how to update a dictionary entry
  • how to change a dictionary entry python

No comments yet.

Leave a Comment

Switch to our mobile site