"""
Topic 05: Data Structures - MEDIUM Exercises (10)
"""
# Exercise 1: Write a program to remove all duplicates from a list.
# Hint: Convert to a set and back to a list.
# Write your code below:
# Exercise 2: Given two sets A = {1, 2, 3, 4} and B = {3, 4, 5, 6},
# find the Union, Intersection, and Difference (A-B).
# Write your code below:
# Exercise 3: Use a dictionary to store a student's grades in 3 subjects.
# Calculate the average and print it.
# Write your code below:
# Exercise 4: Create a list of tuples, where each tuple contains a student's name and their score.
# Sort the list by the score in descending order.
# Write your code below:
# Exercise 5: Fibonacci with Lists - Generate the first 10 Fibonacci numbers and store them in a list.
# Write your code below:
# Exercise 6: Dictionary Merging - Given two dictionaries d1 = {'a': 100, 'b': 200} and d2 = {'c': 300, 'd': 400},
# merge them into a single dictionary.
# Write your code below:
# Exercise 7: List Flattening - Convert a nested list [[1,2], [3,4], [5,6]] into a single list [1,2,3,4,5,6].
# Write your code below:
# Exercise 8: Count the occurrence of each word in a string "apple banana apple cherry banana apple"
# and store the result in a dictionary.
# Write your code below:
# Exercise 9: Use a list comprehension to filter out all the words from a list that start with the letter 'P'.
# words = ["Python", "Java", "PHP", "C++", "Perl"]
# Write your code below:
# Exercise 10: Create a "Phonebook" where name is the key and phone number is the value.
# Allow the user to input a name to search for their number.
# Write your code below: