PYTHON DICTIONARY IMPORTANT QUESTION
1. Write a Python script to sort (ascending and descending) a dictionary by value.
2. Write a Python script to add a key to a dictionary.
3. Write a Python script to concatenate following dictionaries to create a new one.
4. Write a Python script to check whether a given key already exists in a dictionary.
5. Write a Python program to iterate over dictionaries using for loops.
6. Write a Python script to generate and print a dictionary that contains a number
7. Write a Python script to print a dictionary where the keys are numbers between 1
and 15 (both included) and the values are square of keys.
8. Write a Python script to merge two Python dictionaries.
9. Write a Python program to iterate over dictionaries using for loops.
10. Write a Python program to sum all the items in a dictionary.
11. Write a Python program to multiply all the items in a dictionary.
12. Write a Python program to remove a key from a dictionary.
13. Write a Python program to map two lists into a dictionary.
14. Write a Python program to sort a dictionary by key.
15. Write a Python program to get the maximum and minimum value in a
dictionary.
16. Write a Python program to get a dictionary from an object’s fields.
17. Write a Python program to remove duplicates from Dictionary.
18. Write a Python program to check a dictionary is empty or not.
19. Write a Python program to combine two dictionary adding values for common
keys.
20. Write a Python program to print all unique values in a dictionary.
21. Write a Python program to create and display all combinations of letters,
selecting each letter from a different key in a dictionary.
22. Write a Python program to find the highest 3 values in a dictionary.
23. Write a Python program to combine values in python list of dictionaries.
24. Write a Python program to create a dictionary from a string.
25. Write a Python program to print a dictionary in table format.
26. Write a Python program to count the values associated with key in a dictionary.
27. Write a Python program to convert a list into a nested dictionary of keys.
28. Write a Python program to sort a list alphabetically in a dictionary.
29. Write a Python program to remove spaces from dictionary keys.
30. Write a Python program to get the top three items in a shop.
31. Write a Python program to get the key, value and item in a dictionary.
32. Write a Python program to print a dictionary line by line.
33. Write a Python program to check multiple keys exists in a dictionary.
34. Write a Python program to count number of items in a dictionary value that is a
list.
35. Write a Python program to sort Counter by value.
36. Write a Python program to create a dictionary from two lists without losing duplicate values.
37. Write a Python program to replace dictionary values with their sum.
38. Write a Python program to match key values in two dictionaries.
39. Write a Python program to store a given dictionary in a json file.
40. Write a Python program to create a dictionary of keys x, y, and z where each key has as value a list from 11-20, 21-30,     and 31-40 respectively. Access the fifth value of each key from the dictionary.