Aug-24-2021, 11:57 AM
Hello,
I've got a two lists, one with integers and one with data and I need to remove items from the data, using the integers as index references.
For example:
Thanks,
James
I've got a two lists, one with integers and one with data and I need to remove items from the data, using the integers as index references.
For example:
a = [1,3,4] b = ['a','b','c','d','e'] for i in range(len(a)): b.pop(a[i]) print(b)But it comes up with errors, please help. I know there is a simple solution but I'm just not seeing it!
Thanks,
James