title: Python: Count (x, y) points in a unit circle and sum to estimate pi
body: <p>Beginner in python here.</p>
  
  <p>300 points are randomly generated where x and y are between 0 and 1.</p>
  
  <p>I need to count the number of points that are generated inside the unit circle and to also estimate pi using these points. I typically want the code to be similar to this (what I have so far):</p>
  
  <pre><code>import math
  import random
  
  points = 300
  x = [random.random() for jj in range(points)]
  y = [random.random() for xx in x]
  count = 0
  
  for xx, yy in zip(x,y) :
      if xx**2 + yy**2 &lt; 1:
         do_not_count_it
      else:
         count_it
  sum = all_points_in_unit_circle
  </code></pre>
  
  <p>Any suggestions on how to complete the code?</p>