Arithmetic in Python V3 
Arithmetic in Python V3
by Socratica
Video Lecture 7 of 21
Not yet rated
Views: 490
Date Added: May 13, 2017

Lecture Description

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!

Subscribe today!

Circle us on Google+ at
Follow us on Twitter at
Like us on Facebook at

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.


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)