Q10
Computer ScienceChapter 04a: Python — Basics of Python
Question No. 10 (Group A)
Problem Statement
How do you add a new key-value pair to a dictionary? a) dict.add("key", "value") b) dict["key"] = "value" c) dict.append("key", "value") d) dict.insert("key", "value")
High Frequency SEE Question Difficulty: Moderate