title: How to write a program that simulates the rolling of two dice 10,000 times
body: <p>The program should simulate rolling two dice about 10,000
  times and compute and print out the percentage of rolls that come out to be 2, 3, 4, . . . , 12.
  I have tried the code below  but it is not working!</p>
  <pre><code>from random import randint
  l = [2,3,4,5,6,7,8,9,10,11,12]
  p = []
  count = 0
  
  for i in range(10000):
       a  = randint(1,6)
       b  = randint(1,6)
       for j in l:
           if a+b == j:
           count+=1
           percent = (count/10000)*100
           p.append(percent)
  print(p)
  </code></pre>