@premsheth wrote:
Hi friends,
I am new in python
I have list of list below:[[1.0, 'Software Developer', 1329], [1.0, 'Software Developer', 2086], [0.9230769230769231, 'United States', 1329], [0.9230769230769231, 'United States', 2086]]
Now I want to combine these list of list from last element.
for example I want to combine list when last element is 1329 and need output below
[1.0, 'Software Developer', 0.9230769230769231, 'United States',1329]
And then Make into Dictionary below:
{'id': 1329,
'location': 'United States',
'location_score': 0.92,
'title': 'Software Developer',
'title_score': 1.0}
I tried and did google but I got just merging list only
How can I combine list of list with common element?Thanks in advance
Posts: 7
Participants: 2