1. Computing

Beginning Python: Operators

From , former About.com Guide

2 of 3

Common Operators

Python uses the following operators:

+ addition (unary plus)
- subtraction (unary minus)
* multiplication
**
/ division
% modulo
< less than
> greater than
<= less than or equal to
>= greater than or equal to
== equal to
!= not equal to
<> an obsolete form of 'not equal to'

For strings, however, Python has just one operator: + for concatenation. All other operations are performed using modules like string or re.

©2013 About.com. All rights reserved.