+ 4

Can we get different index number for the same element of list ?

suppose l=[0,0,0,1,1,1,1,1,0] Can I get different index numbers for 1. Please help me.

19th Apr 2020, 3:43 PM
Mohd Aadil
Mohd Aadil - avatar
2 Respuestas
+ 3
Using loop you can get otherwise you will get first and last index number of an element.
19th Apr 2020, 3:45 PM
A͢J
A͢J - avatar
+ 2
Thanks alot Respected AJ mam your answer helped me
19th Apr 2020, 5:45 PM
Mohd Aadil
Mohd Aadil - avatar