Archive:Python/Operators: Difference between revisions
wikademia>Wikademia m 42 revisions |
wikademia>Wikademia m moved Python operators to Archive:Python/Operators |
||
| (One intermediate revision by the same user not shown) | |||
| 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. | ||