Top Comments
All Comments (507)
-
不错
-
@jookSTR Lol no its not, I think you need to go back to school.
-
-5 * -5 * -5 * -5 = - 625
-
@TheBluesftw Cheers for backing me up mate, I'm sick or seeing kids who don't understand fundamental mathematical laws
-
@amazoneon Totally true bro!
-
@MrHappyh1ppo So you are tellin -5**4 is positive? Are you nuts mate? When you write -5**4 then the "powering" is not referred to a minus, only to number, and minus is just rewritten, so "by the laws of maths" it should be negative. And when you write (-5)**4 you think of -5 like one number ( which it is ) and powering it whole, and then you are getting positive answer. So python and calculators are totally correct my friend. Its something i learned in sixth grade of elementary. :O
-
@Imrsk007 what about a virtual snake? ----- asshole dont ruin my dreams!
-
"on Gooeey"
-
i'm using 3.2.2 - when i do something like 18/5 it doesn't truncate the quotient...it gives me 3.6
i downloaded 2.7.2 to see if it was an ID10T error on my end and it truncated in that version's (2.7.2) IDLE.
So, it seems that 3.2.2 has made it so any integer division automatically results with a decimal answer if necessary.



@m5h2m6 that is the process python and all calculators do, but the correct process of -5**4 when written should give a positive answer in the laws of maths. to make it work on pyhton and all calculators you need to write (-5)**4 which gives 625 which is correct for 5^4.
MrHappyh1ppo 4 months ago 22
17 people thought Python programming tutorial, was to program a snake!
Imrsk007 3 weeks ago in playlist Python Programming Tutorials 9