Numerical Operations

How do you represent basic mathematical operations?

Using multiplication, addition, or subtraction with integers returns an integer.

How does the operation you're using affect the type of your output?

Using subtraction, multiplication, or addition with at least one float returns a float. All division operations return floats. Two asteriks (**) represent an exponent. For example, to raise 2 to the power of 3, enter 2 ** 3.

How do you force Python to use a nonstandard order of operation?

To force a nonstandard order of operations, use parentheses.