Numbers and more in Python

Numbers and more in Python

In this lecture, we will learn about numbers in Python and how to use them.

We’ll learn about the following topics:

1.) Types of Numbers in Python

2.) Basic Arithmetic

3.) Differences between classic division and floor division

4.) Object Assignment in Python

Types of numbers:

There are three numeric types in Python

  • int
  • float
  • complex

Variables of numeric types are created when you assign a value to them:

x = 1    # int
y = 2.8  # float
z = 1j   # complex

Let’s explore about the numbers through jupyter notebook.