• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
28 views

Problem:

given that d refers to a dictionary, change the value mapped to by the key 'monty' to 'python'.
Can some show me the code in python to achieve this ?

by (720 points)  

1 Answer

0 votes

Solution:

>>> d = {}

>>> d[ "Monty" ] = "Python"

>>> d

{'Monty': 'Python'}

by (4k points)  
...