title: Unequal output values from Python and Julia
body: <p>I am implementing the Mandelbrot function both in Python and Julia; however, after the 6th iteration, the codes yield different results. What can be the main reason?</p>
  <p>Here is the code in Python:</p>
  <pre><code>def mandelbrot(a):
      z = 0
      for i in range(50):
          z = z**2 + a
      return z
  </code></pre>
  <p>and, here is the same code in Julia:</p>
  <pre><code>function mandelbrot(a)
      z = 0
      for i=1:50
          z = z^2 + a
      end
      return z
  end
  </code></pre>