I was given two lists :
list1 = ["A","B","C","D","E","F",1,"G",3,"H","I","J","K","L"]
list2 = [20 ,27 ,"Arm","Leg",13 ,24 ,"Head",75 ,64 ,71 ,"Ankle", 82 ,45 ,23 ]
Using the shortest code possible, I need to create a dictionary (dictChallenge
) containing only the letter from list1
and only the numbers from list2
.
The output of print(dictChallenge)
is:
{'A': 20, 'B': 27, 'E': 13, 'F': 24, 'G': 75, 'H': 71, 'J': 82, 'K': 45, 'L': 23 }