Finding multiple occurrences of dictionary?
<p>I'm trying to use most simple way to count all occurrences of x dictionary but without result.
I cant import any library, nor use other statments than: for var in, if x, if not, if is.</p>

<p>Result of script should look like this:
example:</p>

<pre><code>list = [1,2,1,'a',4,2,3,3,5,'a',2]

code

print occurrences(list)

result

1 = [0, 2]
2 = [1, 5, 10]
a = [3, 9]
and so on
</code></pre>

<p>@edited
corrected text</p>
