Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Fredrik Lundh
frankie_85 wrote: > Hmmmafter more trials and errors, I think what I did wrong is along > on these lines: > > a_1 = math.sqrt(math.fabs(a)) + 5((math.pow(a,3))) > b_2 = math.sqrt(math.fabs(b)) + 5((math.pow(b,3))) > c_3 = math.sqrt(math.fabs(c)) + 5((math.pow(c,3))) > d_4 = math.sqrt(math.fab

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Paul Rubin
"frankie_85" <[EMAIL PROTECTED]> writes: > e_5 = math.sqrt(math.fabs(e)) + 5((math.pow(e,3))) > > but I still don't understand though why the variable a, b, c, d, e > becomes an int type even though I have already specified the user input > to be floating point? if you want to multiply two number

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread frankie_85
Thanks for some of the helps guys. Hmmmafter more trials and errors, I think what I did wrong is along on these lines: a_1 = math.sqrt(math.fabs(a)) + 5((math.pow(a,3))) b_2 = math.sqrt(math.fabs(b)) + 5((math.pow(b,3))) c_3 = math.sqrt(math.fabs(c)) + 5((math.pow(c,3))) d_4 = math.sqrt(math.

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Fredrik Lundh
Steven D'Aprano wrote: > I don't think the restrictions against collusion are meant to prohibit > simple "what does this error message mean?" type questions. It would be > a funny sort of learning process that forced students to live in a > vacuum, never discussing their topic with anyone else, ne

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Antoine De Groote
frankie_85 wrote: > Hi everyone, > > I just made a simple code which is part of my assignment but I can't > figure it out what's wrong with it. (always give me error messages) > > What the code basically does is: > > a function that takes one floating point number x as its argument and > returns

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread James Stroud
Steven D'Aprano wrote: > On Sat, 28 Oct 2006 18:56:33 +1000, Ben Finney wrote: > >> "frankie_85" <[EMAIL PROTECTED]> writes: >> >>> I just made a simple code which is part of my assignment >> You may want to review the restrictions your educational institution >> has on collusion. > [snip] >> Agai

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Steven D'Aprano
On Sat, 28 Oct 2006 18:56:33 +1000, Ben Finney wrote: > "frankie_85" <[EMAIL PROTECTED]> writes: > >> I just made a simple code which is part of my assignment > > You may want to review the restrictions your educational institution > has on collusion. [snip] > Again, please make sure you work on

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Ben Finney
"frankie_85" <[EMAIL PROTECTED]> writes: > I just made a simple code which is part of my assignment You may want to review the restrictions your educational institution has on collusion. > a function that takes one floating point number x as its argument > and returns (the square root of the abs

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread [EMAIL PROTECTED]
frankie_85 wrote: > Hi everyone, > > I just made a simple code which is part of my assignment but I can't > figure it out what's wrong with it. (always give me error messages) > > What the code basically does is: > > a function that takes one floating point number x as its argument and > returns (

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Luuk
"frankie_85" <[EMAIL PROTECTED]> schreef in bericht news:[EMAIL PROTECTED] > Hi everyone, > > I just made a simple code which is part of my assignment but I can't > figure it out what's wrong with it. (always give me error messages) > > What the code basically does is: > > a function that takes o

Re: Need help (Basic python)...what did I do wrong?

2006-10-28 Thread Fredrik Lundh
frankie_85 wrote: > a_1 = math.sqrt(math.fabs(a)) + 5((math.pow(a,3))) > TypeError: 'int' object is not callable hint: in most programming languages, you have to use an explicit operator to spell out multiplication. Python's no exception. -- http://mail.python.org/mailman/listinfo/pytho

Need help (Basic python)...what did I do wrong?

2006-10-28 Thread frankie_85
Hi everyone, I just made a simple code which is part of my assignment but I can't figure it out what's wrong with it. (always give me error messages) What the code basically does is: a function that takes one floating point number x as its argument and returns (the square root of the absolute va