title: Need an Easier Version of This Python Script
body: <p>so I just started learning python after a bit of C++ and we are finding probabilities of dice rolls on python. My question is, if there is a better version of this code that is much simpler and "obvious":</p>
  
  <pre><code>def numsix(roll):
    return len([dice for dice in roll if dice == 6])
  
  sample = [[i] for i in range(1,7)]
  for i in range(7):
        sample = [x + [i] for x in sample for i in range (1,7)] 
  
  event = [roll for roll in sample if numsix(roll)==4]
  print(len(event), "/" ,len(sample))
  </code></pre>