I am trying to figure out the most efficient way to convert a list into a list of single item dictionaries, example:
my_fruit = [
'apple',
'orange',
'pear',
'grape'
]
to
my_fruit = [
{'apple': 'apple'},
{'orange': 'orange'},
{'pear': 'pear'},
{'grape': 'grape'}
]
I'm just not familiar enough with Python to figure out the best way to do this. It seems like it should be easy.