Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Python Programming Tutorial - 2 - Numbers and Math

Loading...

Sign in or sign up now!
217,777
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 18, 2009

Part 3 - http://www.youtube.com/watch?v=667ZeuZ0Q8M

Fun tutorial with numbers! Yay!

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 17 dislikes

Link to this comment:

Share to:

Top Comments

  • @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.

  • 17 people thought Python programming tutorial, was to program a snake!

see all

All Comments (507)

Sign In or Sign Up now to post a comment!
  • 不错

  • @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.

View all Comments »
Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more