title: for loop, if statement
body: <p>I'm really new to python. i'am trying to get this working. </p>
  
  <pre><code>import math
  number, times = eval(input('Hello please enter the value and number of times to improve the guess followed by comma:'))
  guess=number/2
  sq_math= math.sqrt(number)
  if times&gt;1:
      for i in range(2,times+1):
          guess=(guess+times/guess)/2
          if round(guess,1) == round(sq_math,1):
           break
  
  else:
      pass
  
  print('Newtons method guessed {0}, square root was {1}'.format(guess, sq_math))
  </code></pre>
  
  <p>So what he best way? Thank you guys!</p>