I have a dictionary
with key values, But I want to rearrange/change the type of the keys/values in the dict
so as per my like. How can I do it?
for Example:
Dict = {'a':19,'b':30, 'c':"New", 'd': 6}
I want to make b
as key at position 1 and/or I want to make a
key as a list
and so on.
NOTE: I dont not want to sort the dict! But decide myself :
Example:
If this key is present in dict then put this Key,value in Position 1
So my final result would be,
Dict = {'b':30, 'a':[19], 'd':6, 'c':"new"}