best python course | Arithmetic in Python V2 || Python Tutorial

best python course

Today we talk about the rules of arithmetic in Python Version 2.  The key detail is when combining two numbers, Python will widen numbers to make sure they are all of the same types. 

(In Python v2, there are four numeric types: ints, longs, floats, and complex numbers.)  Also, when you divide two whole numbers, Python will return the quotient, not the mathematical value.

https://www.youtube.com/watch?v=rEHd-ziRzNM&list=PLi01XoE8jYohWFPpC17Z-wWhPOSuh8Er-&index=6

best python course|Learn Python with Socratica

best python course | Hello World in Python || Python Tutorial

best python course | Python Strings

best python course | Numbers in Python Version 2

best python course | Arithmetic in Python V2 || Python Tutorial

 

 

 

Enjoyed this article? Stay informed by joining our newsletter!

Comments

You must be logged in to post a comment.

Related Articles