I have a list of values that match with certain keys from a dictionary I created earlier.
myDict = {1:'A',2:'B',3:'C'}
myList = ['A','A','A','B','B','A','C','C']
How can I create/convert myList into something like:
myNewList = [1,1,1,2,2,1,3,3]
Could someone point me in the right direction?
Not sure if it matters, I created the dictionary using json in another script, and I am now loading the created dictionary in my current script.
 
     
     
     
    