I have this dictionary:
dictk={"hi":1, "hi":3, "o":7, "o":2, "p":1, "e":5}
for key, val in dictk.items():
print(key, val)
output:
hi 3
o 2
p 1
e 5
These are not all the pairs in the dictionary, is there a way to get all of them, such that the output will be something like this:
hi 1
hi 3
o 7
o 2
p 1
e 5
Thank you