In Python How Would I Go About Creating A Dictionary Out Of Two Lists Using A Wh

in Python, How would I go about creating a dictionary out of two lists using a while loop? I was able to do it with:

def create_dictionary(keys, values):

  # Place code here – refer to function specifics in section below

  dic = {}

  y = 0

  for x in list_keys:

    dic[x]=list_values[y]

    y = y + 1

  return dic

but I need to do it with a while loop

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
ORDER NOW