+ 9
How can i use duplicates in a list individually
I need to use indices of identical items but individually how can I get python to output duplicates with different indices without returning the same index for the two or more identical items in a list
4 Respuestas
+ 7
i found the answer it's in enumerate
+ 6
here's the code try to enter duplicates in input it will return the lowest index for both items
and don't forget to leave an empty line by pressing enter at the end of the input
+ 1
Give example dude