I'm trying to find a code that transforms a list of lists into a dictionary. Lets say I have a list that is
list_one = [['id1', 'id2', id3', 'id4', 'id5'],
['1', 'Cat', '400', 'Fur', '50'],
['2', 'Dog', '500', 'Smelly', '60']]
The dictionary should have keys to number each list in dictionaries in this format
new_dict = {1.0: {'id1': 1,
'id2': 'Cat',
'id3': 400,
'id4': 'Fur',
'id5': 50},
2.0: {'id1': 2,
'id2': 'Dog',
'id3': 500,
'id4': 'Smelly'
'id5': 60}
Can such a conversion be done in list comprehension or through a for loop?