+ 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

23rd Apr 2017, 9:05 PM
Hasan Fares
Hasan Fares - avatar
4 Réponses
+ 7
i found the answer it's in enumerate
29th Apr 2017, 8:04 AM
Hasan Fares
Hasan Fares - avatar
23rd Apr 2017, 9:27 PM
Hasan Fares
Hasan Fares - avatar
+ 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
23rd Apr 2017, 9:29 PM
Hasan Fares
Hasan Fares - avatar
+ 1
Give example dude
23rd Apr 2017, 9:19 PM
Abdullahi Yusuf
Abdullahi Yusuf - avatar