I have two lists:
list1 = ['r', '8', 'w', 'm', 'f', 'c', 'd',...]
list2 = ['AA', 'AB', 'AC', 'AD', 'AE', 'AF',...]
I wish to put both of them into a dictionary such that:
{'r':'AA', '8':'AB', 'w':'AC', 'm':'AD',...}
I have tried using:
dictionary = dict(zip(list1, list2))
However, I believe this function does some sort of strange ordering as I get the following output if I print "dictionary":
{'1': 'BE', '0': 'EB', '3': 'CE', '2': 'FE', '5': 'DB',...}
Why is this, and how would the desired output be produced?