is there a way to define a function that takes two lists and makes the elements in the first list the key and the elements in the second list the values of a dictionary?
names = ['ted','west','tom','jerry','fred']
and another list ages = [10,23,13,18,12]
how can i define a function that takes the two lists and returns a dictionary with the names as the key and the scores as the value?
i know that i can turn each list into a dictionary and then append it but I'm not sure how i can place the colons.