I have two lists, the first list contains duplicate values.
What I need is to remove the duplicates from List1
and also merge the values in List2
on the same indices as List1
duplicate values.
What I Have:
List1 = ['show1', 'show2', 'show3', 'show2', 'show4', 'show4']
List2 = ['1pm', '10am', '11pm', '2pm', '5pm', '3pm']
What I Need:
List1 = ['show1', 'show2', 'show3', 'show4']
List2 = ['1pm', '10am | 2pm', '11pm', '5pm | 3pm']