Consider dictionaries like:
a_dict = {"a":1,"b":2,"c":3}
b_dict = {"A":5,"B":6,"C":7}
for (k,v),(k1,v1) in zip(a_dict.items(),b_dict.items())):
print(k,v);
print(k1,v1);
output
b 2
B 6
a 1
A 5
c 3
C 7
After searching about dictionary i got that the elements of dictionaries are not sorted that's why these elements of dictionaries are printed randomly. But i want them printed sequentially. that is
a 1
A 5
b 2
B 6
c 3
C 7
How can I do that?