i need to write an algorithm for computing square roots.
so far I have

import math

def main ():
      print " This program computes approximate square roots using Newton's
method: "
      print


     input = (" Enter whose square root you wish to compute (a) : ")
     input = (" Enter the number of iterations :" )
     discRoot = math.sqrt

print
print "The solutions of the square roots"


I need to have it print out iterations and math.sqrt what am i doing wrong?
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to