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

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount