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

# Define a dictionary
con_str = {"host":"", "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:

  • python change working dictionairy
  • change dict keys python
  • changing dictionary keys python
  • how to edit dictionaries python
  • how to edit and dictionary entry python
  • pyhton modify entry
  • replace values in a dictionary with new values in python
  • pyton changing aray entrit
  • python how to update a dictionary entry
  • change a key to string in dictionary python

No comments yet.

Leave a Comment

Switch to our mobile site