title: Is there a way to determine successes in a python dice roller?
body: <p>I am new to programming (like <em>very new</em>) and I decided to make a dice roller for my favorite RPG, Vampire the Masquerade. For those who don't know, when you want to make a roll in VtM, you make dice pools of d10s (ten sided dice) and then whether you succeed or not is based on the amount of &quot;successes&quot; you rolled; any dice result of 6 or more.</p>
  <p>So far, i've managed to make a basic roller that just rolls d10s:</p>
  <pre><code>#&quot;d&quot; is the number of dice
  def roll(d):
      return [randint(1,10) for i in range(d)]
  
  #Main Program
  d = int(input(&quot;\nHow many dice are you rolling? &gt; &quot;))
  results = roll(d)
  print(results)
  </code></pre>
  <p>However, I'm having trouble making the program count the number of successes in the roll. I was hoping for the output to look something like</p>
  <pre><code>How many dice are you rolling? &gt; 2
  [5, 9]
  1 success
  </code></pre>
  <p>Any advice?</p>