Re: new to python and programming at large.

2013-01-09 Thread Michael Torrie
On 01/09/2013 07:45 PM, kwakukwat...@gmail.com wrote: > thanks so much it worked.I have tried and tried.look at what I was doing. > me = raw_input("Enter a value:") > from math import sqrt > def squareroot(y): > > me = squareroot(y) > return squareroot(y) Congratulations! You've just cre

Re: new to python and programming at large.

2013-01-09 Thread kwakukwatiah
-Original Message- From: Dave Angel Sent: Wednesday, January 09, 2013 12:00 PM To: python-list@python.org Subject: Re: new to python and programming at large. On 01/09/2013 05:28 PM, kwakukwat...@gmail.com wrote: thanks for ur help I wz able to do it.but I wish to expand it by asking

Re: new to python and programming at large.

2013-01-09 Thread Dave Angel
On 01/09/2013 05:28 PM, kwakukwat...@gmail.com wrote: > thanks for ur help I wz able to do it.but I wish to expand it by asking a > user to input a number for the sqrt to be calculated it I dd it this way but > its not working. > > > from math import sqrt > number = raw_input('enter a number:') >

Re: new to python and programming at large.

2013-01-09 Thread John Gordon
In kwakukwat...@gmail.com writes: > thanks for ur help I wz able to do it.but I wish to expand it by asking > a user to input a number for the sqrt to be calculated it I dd it this > way but its not working. > from math import sqrt > number = raw_input('enter a number:') > def number(y): >

new to python and programming at large.

2013-01-09 Thread kwakukwatiah
thanks for ur help I wz able to do it.but I wish to expand it by asking a user to input a number for the sqrt to be calculated it I dd it this way but its not working. from math import sqrt number = raw_input('enter a number:') def number(y): return number(Y) thnx-- http://mail.python.or

RE: new to python and programming at large

2013-01-09 Thread Adrian Espinosa Moreno
:06 Para: python-list@python.org Asunto: new to python and programming at large pls I want to write a function that can compute for the sqrt root of any number.bt it not working pls help. from math import sqrt def squareroot(self): x = sqrt(y) print x

Re: new to python and programming at large

2013-01-09 Thread Ulrich Eckhardt
Am 09.01.2013 22:05, schrieb kwakukwat...@gmail.com: pls I want to write a function that can compute for the sqrt root of any number.bt it not working pls help. Whenever describing an error, be precise. In this particular case, we have some sourcecode (which is good!) but what is still missin

Re: new to python and programming at large

2013-01-09 Thread Chris Angelico
On Thu, Jan 10, 2013 at 2:38 AM, Alister wrote: > On Thu, 10 Jan 2013 02:18:11 +1100, Chris Angelico wrote: > >> On Thu, Jan 10, 2013 at 8:03 AM, wrote: >>> pls I want to write a function that can compute for the sqrt root of >>> any number.bt it not working pls help. >>> from math import sqrt

Re: new to python and programming at large

2013-01-09 Thread Alister
On Thu, 10 Jan 2013 02:18:11 +1100, Chris Angelico wrote: > On Thu, Jan 10, 2013 at 8:03 AM, wrote: >> pls I want to write a function that can compute for the sqrt root of >> any number.bt it not working pls help. >> from math import sqrt def squareroot(self): >> x = sqrt(y) >> print x

Re: new to python and programming at large

2013-01-09 Thread Chris Angelico
On Thu, Jan 10, 2013 at 8:03 AM, wrote: > pls I want to write a function that can compute for the sqrt root of any > number.bt it not working pls help. > from math import sqrt > def squareroot(self): > x = sqrt(y) > print x The 'self' argument is a convention used in classes. You probab

new to python and programming at large

2013-01-09 Thread kwakukwatiah
pls I want to write a function that can compute for the sqrt root of any number.bt it not working pls help. from math import sqrt def squareroot(self): x = sqrt(y) print x-- http://mail.python.org/mailman/listinfo/python-list

new to python and programming at large

2013-01-09 Thread kwakukwatiah
pls I want to write a function that can compute for the sqrt root of any number.bt it not working pls help. from math import sqrt def squareroot(self): x = sqrt(y) print x-- http://mail.python.org/mailman/listinfo/python-list