MCQs>IT & Programming>Python>Assume dictionary mydict = {'foo': 'Hello', 'bar': 'World!'} Which of the below would change the value of foo to 'Goodbye' ?
Python MCQs
Assume dictionary mydict = {'foo': 'Hello', 'bar': 'World!'} Which of the below would change the value of foo to 'Goodbye' ?
Answer
Correct Answer: mydict['foo'] = 'Goodbye'
Explanation:
Note: This Question is unanswered, help us to find answer for this one