Arithmetic in Python V2 
Arithmetic in Python V2
by Socratica
Video Lecture 6 of 21
Not yet rated
Views: 343
Date Added: May 13, 2017

Lecture Description

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 type. (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.

And beware of division by 0!


Subscribe today! www.youtube.com/subscription_center?add_user=SocraticaStudios

Circle us on Google+ at google.com/+socratica
Follow us on Twitter at twitter.com/socratica
Like us on Facebook at www.facebook.com/SocraticaStudios


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

Course Index

Course Description

Our Python Tutorials will help you learn Python quickly and thoroughly. We start with "Hello World" and then move on to data structures (sets, lists, tuples and dictionaries). Next we'll cover classes, and give a variety of in-depth examples and applications.

Python is a clean and powerful programming language. You can use it to build websites, analyze data, write utilities, and create many other kinds of software. In this series we will teach everything you need to know to begin writing your own code in Python.

Comments

There are no comments. Be the first to post one.
  Post comment as a guest user.
Click to login or register:
Your name:
Your email:
(will not appear)
Your comment:
(max. 1000 characters)
Are you human? (Sorry)