Question: 7. get method can be used just to get the value of a key. But it has more tricks up its sleeve. Try to look
7. get method can be used just to get the value of a key. But it has more tricks up its sleeve. Try to look for kay son's age and it nothing comes up make the.get) return 2 Int: dict:{"son's name":"Lucas", "son's eye color": "green", "son's height": 32,"son's weight": 25) Type your answer here. ans_1- printans_1) 8. Since dictionaries are mutable, they have some methods that tuples don't have clear) is one of them and it clear the whole dictionary In ! : dict-{"son's name": "Lucas", "son's eye color""green", "son's height": 32,"son's weight": 25) #clear the dictionary here then print it. print(dict) 8. Using len function, find how many keys there are in the dictionary. In 1: dict="son's name": "Lucas", "son's eye color": "green", "son's height": 2, "son's weight: 25) wwrite your answer here. ans_1 print tans 1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
