Arithmetic in Python V3 || Python Tutorial || Learn Python Programming

Veröffentlicht am: 27 Juni 2014
auf dem Kanal: Socratica
154,333
2.4k

𝙎𝙩𝙖𝙮 𝙞𝙣 𝙩𝙝𝙚 𝙡𝙤𝙤𝙥 𝙄𝙉𝙁𝙄𝙉𝙄𝙏𝙀𝙇𝙔: https://snu.socratica.com/python Today we talk about the rules of arithmetic in Python Version 3. The key detail is when combining two numbers, Python will widen numbers to make sure they are all of the same type. (In Python v3, there are three numeric types: ints, floats and complex numbers.) And division has changed from version 2. Now, division always returns the correct math value as a float. It no longer returns the quotient when you divide two whole numbers.

And beware of division by 0!

To learn Python, start our Python Playlist HERE:
http://bit.ly/PythonHelloWorld

Subscribe to Socratica: http://bit.ly/1ixuu9W

♦♦♦♦♦♦♦♦♦♦

We recommend:
Python Cookbook, Third edition from O’Reilly
http://amzn.to/2sCNYlZ

The Mythical Man Month - Essays on Software Engineering & Project Management
http://amzn.to/2tYdNeP

Shop Amazon Used Textbooks - Save up to 90%
http://amzn.to/2pllk4B

♦♦♦♦♦♦♦♦♦♦

Ways to support our channel:

► Join our Patreon :   / socratica  
► Make a one-time PayPal donation: https://www.paypal.me/socratica
► We also accept Bitcoin @ 1EttYyGwJmpy9bLY2UcmEqMJuBfaZ1HdG9

Thank you!

♦♦♦♦♦♦♦♦♦♦

Connect with us!

Facebook:   / socraticastudios  
Instagram:   / socraticastudios  
Twitter:   / socratica  

♦♦♦♦♦♦♦♦♦♦

Python instructor: Ulka Simone Mohanty
Written & Produced by Michael Harrison
FX by Andriy Kostyuk

♦♦♦♦♦♦♦♦♦♦


Auf dieser Seite können Sie das Online-Video Arithmetic in Python V3 || Python Tutorial || Learn Python Programming mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Socratica 27 Juni 2014 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 154,333 Mal angesehen und es wurde von 2.4 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!