Python Beginner Exercise 8: generate a dictionary from different source
Question Write a Python program to create a new dictionary by extracting the mentioned keys from the below dictionary. **Given sample_dict = { "name": "Kelly", "age": 25, "salary": 8000, "city": "New york"} # Keys to extract keys = ["name", "salary"]…