I have a program that stores data in a list. The current and desired output is in the format:
# Current Input
[{'Devices': ['laptops', 'tablets'],'ParentCategory': ['computers', 'computers']},{'Devices': ['touch'], 'ParentCategory': ['phones']}]# Desired Output
[{'Devices': ['laptops', 'tablets','touch'],'ParentCategory': ['computers', 'computers','phones']}]
Can you give me an idea on how to combine the lists with another python line of code or logic to get the desired output?