Lists, Tuples, Sets & Dictionaries Quiz

Complete this assessment with 100% score to master this chapter.

01How do you add an item to the end of a list?

02What is the correct way to get the value for 'name' from a dictionary called 'user' without raising an error if it doesn't exist?

03Which collection type does NOT allow duplicate values?

04What is the key difference between a list and a tuple?

05How do you iterate over both the keys AND values of a dictionary at the same time?