MATH: The operator for multiplication is * and the operator for division is /.

NOTE: In Python, all results from division are floats. Even if the quotient is even, the result will have a decimal.

  • Drag Multiplication to the next line. Change my_var to multiplication and the numbers in the equation.
  • Drag Division in next. Change my_var to division and change the numbers in the equation.
  • Click Run and look at the results. Notice that division has a decimal!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)