How to change a value in a dictionary in Python

How to change a value in a dictionary in Python

In this short tutorial, you will learn how to change the value associated with a key in a dictionary in Python. Want to learn more? See our Python classes at https://goo.gl/udGAfC. Read the documentation for dictionaries here: https://docs.python.org/3/library/std... Code from video: ***************** employees = {1: 'michael', 2: 'eric', 3: 'michael'} employees[2] = 'erick' employees Connect with us! *****************   / enthought     / enthought     / enthought