+ 1

How to find the index of dublicate strings ?

If i want to know the index of both 'a' in a word 'mathematics' how can i find it?

30th May 2020, 5:06 AM
Anjali Singh
Anjali Singh - avatar
7 Answers
+ 7
You can also use the enumerate() function in a for loop, or the index() function repeatedly with error handling. https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/methods/built-in/enumerate https://www.programiz.com/python-programming/methods/list/index
30th May 2020, 5:47 AM
Tibor Santa
Tibor Santa - avatar
+ 4
Tibor Santa Your these mathods will help me a lot thanks
30th May 2020, 6:17 AM
Anjali Singh
Anjali Singh - avatar
+ 3
Thanks #kiibo Ghayal and #Tibor Santa
30th May 2020, 6:15 AM
Anjali Singh
Anjali Singh - avatar
0
Show ur attempt
30th May 2020, 5:15 AM
Abhay
Abhay - avatar