Arithmetic Operators
| Name | Operator | Example | Result |
|---|---|---|---|
| Addition |
+
|
5+6
|
11
|
| Subtraction |
-
| 5-6 |
-1
|
| Multiplication |
*
|
5*6
|
30
|
| Division |
/
|
5/6
|
0.83333
|
| Exponentiation |
**
|
5**2
| =25 |
Adapted from Python for Introductory Statistics: Student's Lab Workbook, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.