Please see the below image for reference:
use key and value of your dictionary
key
value
d={1:[2,3],2:[4,5]} for k, v in d.items(): for item in v: print(k,' : ',item)