d = {"a":0, "b":1, "c":2} keys, values = [], [] for k, v in d.items(): keys.append(k) values.append(v) print(keys,values)