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
"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
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.
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
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
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
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
"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
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 (
"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
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
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
12 matches
Mail list logo