I have an array of:
item1, item2, item3. These are all integers.
I want to write a function that will add these to a dictionary as values to keys. The keys would also need to be added to the dictionary and would need to be the same name as the variables in the array.
So, let's say var array = [item1, item2, item3].
Then the desired dictionary's structure would be:
"item1" = int value of item1 from array
"item2" = int value of item2 from array
"item3" = int value of item3 from array
if that makes sense...
Does anyone have any tips?