InterviewSolution
Saved Bookmarks
| 1. |
Which of the following will give 1 point error? Suppose dict1={"a":1,"b":2,"c":3)print(len(dict1))print(dict1.get(""))dict1["a"]=5None of these |
|
Answer» None of theseExplanation:PRINT(len(dict1)) RETURNS length.print(dict1.get("")) will return none.dict1["a"]=5 CHANGES KEY a's values to 5. |
|