for h in c: print(h,':',c[h])
This Python code is right because of already having defined c. It's not the full code.