Show Menu
Cheatography

Python Cheat Sheet (DRAFT) by

Python Programming

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Arithmetic Operators

+
Addition
-
Subtra­ction
*
Multip­lic­ation
/
Division
**
Exponent

Comparison Operators

==
Equal
!=
Not Equal
>
Greater Than
<
Less Than
>=
Greater Than or Equal To
<=
Less Than or Equal To

Assignment Operators

=
c = a + b assigns value of a + b into c
+=
c += a is equivalent to c = c + a
-=
c -= a is equivalent to c = c - a
*=
c = a is equivalent to c = c a
/=
c /= a is equivalent to c = c / ac /= a is equivalent to c = c / a
**=
c **= a is equivalent to c = c ** a