If I use .index in a list it will always return the first element that come up. But what if they were duplicates and I wanted their indexes as well? For example:
listm=["shell","shell","use"]
listm.index("shell")
It will return 0
but there are 2 "shell"
s. How would I get the index of both?