Ask Question

What is the value of the variable phones after the execution of the following code? phones = {'John': '5555555', 'Julie' : '7777777'} phones['John'] = '1234567'

+4
Answers (1)
  1. 18 May, 03:41
    0
    phones = {'John': '1234567', 'Julie' : '7777777'}

    Explanation:

    In the code given in the question phones dictionary contains contains two keys John and Julie and have the values '5555555' and '7777777' respectively. Now in the code the key John in the dictionary phones is assigned the value '1234567'. So the value corresponding to the key John becomes '1234567'.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the value of the variable phones after the execution of the following code? phones = {'John': '5555555', 'Julie' : '7777777'} ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers