Here are 10 Python multiple-2
Here are 10 Python multiple-2
3. What is the correct syntax to check if key "name" exists in a dictionary person?
a) "name" exists in person
b) "name" in person
c) "name" in keys(person)
d) person.has_key("name")
Answer: b) "name" in person