Title: Arithmetic Basics
Slug: arithmetic_basics
Summary: Arithmetic Basics
Date: 2016-05-01 12:00
Category: Python
Tags: Basics
Authors: Chris Albon
In [1]:
x = 6
y = 9
In [2]:
x + y
Out[2]:
In [3]:
x - y
Out[3]:
In [4]:
x * y
Out[4]:
In [5]:
x % y
Out[5]:
In [6]:
x / y
Out[6]:
In [7]:
x // y
Out[7]:
In [8]:
x ** y
Out[8]:
In [9]:
(x + y) / x
Out[9]:
In [10]:
3 / 5
Out[10]:
In [11]:
3 // 5
Out[11]: