Quiz Complete, well Done!
What does the method 'values()' do in Python?
In a Python dictionary, what are the keys and values?
What does the method 'keys()' do in Python?
What is the syntax for creating a dictionary in Python?
How do you add a new key-value pair to an existing dictionary?
Which of the following is NOT a valid key type for a Python dictionary?
What method do you use to remove a key-value pair from a dictionary?
What does the method 'items()' do in Python?
Which of the following is a valid way to create an empty dictionary in Python?
What happens if you try to access a key that doesn't exist in a dictionary?
In a Python dictionary, what are the keys and values?
What is the syntax for creating a dictionary in Python?
What does the method 'keys()' do in Python?
What is the output of the following code?
dict = {'a': 1, 'b': 2, 'c': 3}
print(dict.get('d', 'Not found'))
What is the output of the following code?
dict = {'a': 1, 'b': 2, 'c': 3}
print(dict['b'])