STEP 14: Let's finish the multiply() function!

  • From drop Multiplication indented inside the multiply() function.
  • Change the variable name from my_var to product. Change the 2 to num_1 and the 3 to num_2.
  • Add Say. Change the string to "The product is " + str(product).

We are using floats for all numbers, since the user may enter any type of number!

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)