title: Python probability
body: <p>We have a six sided die, with sides numbered 1 through 6.
  The probability of first seeing a 1 on the n-th roll decreases as n increases. 
  I want to find the smallest number of rolls such that this probability is less than some given limit. </p>
  
  <pre><code>def probTest(limit):
      prob = 1.0
      n = 1
      while prob &gt; limit:
          prob = (1/6)**n
          n += 1        
      return n-1
  </code></pre>
  
  <p>What is wrong with my code?</p>