Archive:Python/Operators: Difference between revisions

wikademia>Wikademia
m 42 revisions
wikademia>Wikademia
No edit summary
Line 6: Line 6:


===Simple Math===
===Simple Math===
 
{{?}}
Math is very straight forward in Python.  + adds, - subtracts, / divides, and believe it or not * multiplies.  The main thing to comment on is %.  % divides a problem and then returns the remainder. This is called the modulo operation.
Math is very straight forward in Python.  + adds, - subtracts, / divides, and believe it or not * multiplies.  The main thing to comment on is %.  % divides a problem and then returns the remainder. This is called the modulo operation.