Given a list of elements, with certain similar elements in it, how do I write a code in Python to find the position of all the similar elements in it? This must be done using a for loop and if conditions within the for loop.
list1 = [5, 90, 10, 5, 100, 5]
So in this case, since 5 is the element that has repeats or ties, the output will be 0,3,5.