Re: [Tutor] help beginner in python.

2008-02-24 Thread Alan Gauld
"Krystle Scott" <[EMAIL PROTECTED]> wrote >i need to write an algorithm for computing square roots. We don;t do homework here but we can help with specific questions and to resolve errors. > import math > > def main (): > print " This program computes approximate square roots using > Newt

Re: [Tutor] help beginner in python.

2008-02-24 Thread Steve Willoughby
Krystle Scott wrote: > i need to write an algorithm for computing square roots. > so far I have This sounds like a class exercise. I think we can help you with Python questions, but you'll need to do the part that is directly related to your homework on your own. > import math > > def main ():

[Tutor] help beginner in python.

2008-02-24 Thread Krystle Scott
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