PythonAssignmentson Collection
PythonAssignmentson Collection
Exercise 3: Print the value of key ‘history’ from the below dict
Exercise 9: Get the key of a minimum value from the following dictionary
Exercise 10: Check if all items in the tuple are the same
Python Set Exercise
Exercise 1: Add a list of elements to a set
Exercise 4: Update the first set with items that don’t exist in the second set
Exercise 7: Check if two sets have any elements in common. If yes, display the common
elements
Exercise 8: Update set1 by adding items from set2, except common items
Exercise 9: Remove items from set1 that are not common to both set1 and set2