Question 1
How do you add a new key-value pair to an existing dictionary in python?
Question 2
How can you check if a key exists in a dictionary?
Question 3
Which of the following is a valid way to create an empty dictionary in python?
Question 4
How are dictionaries denoted in python?
Question 5
What is the difference between dict and list in python?
Question 6
Which of the following statements about dictionary keys is true?
Question 7
Which method can you use to remove a key-value pair from a dictionary?
Question 8
What does the keys() method return in a dictionary?
Question 9
What happens if you try to access a key that doesnt exist in a dictionary?
Question 10
What is a dictionary in python?