Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_dict = {'a': 2, 'b': 1, 'c': 3, 'd': 1, 'e': 2}
- list = ['a', 'b', 'c', 'd', 'e']
- i = 0
- x = -1
- for item in my_dict:
- countr = 0
- y = 0
- x = x +1
- for items in my_dict:
- if my_dict.get(list[x]) == my_dict[list[y]]:
- countr = countr +1
- y = y + 1
- print("count " + str(list[x]) + " =" + str(countr))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement