How to create variables in a loop in Python : <p>how would I be able to make something like this that actually works?</p>

<pre><code>choices = input('Enter choices. ')

i = 0
while i &lt; 10:
    number_of_{}s.format(i) = choices.count(str([i]))
    i += 1
</code></pre>
