Title: Assignment Operators
Slug: assignment_operators
Summary: Assignment Operators
Date: 2016-05-01 12:00
Category: Python
Tags: Basics
Authors: Chris Albon
In [41]:
a = 2
b = 1
c = 0
d = 3
In [42]:
c = a + b
c
Out[42]:
In [43]:
c += a
c
Out[43]:
In [44]:
c -= a
c
Out[44]:
In [45]:
c *= a
c
Out[45]:
In [46]:
c /= a
c
Out[46]:
In [47]:
d %= a
d
Out[47]:
In [48]:
d **= a
d
Out[48]:
In [24]:
d //= a
d
Out[24]: