STEP 17: Let's finish the divide() function!

  • From drop Division indented inside the divide() function.
  • Change the variable name from my_var to quotient. Change the 6 to num_1 and the 2 to num_2.
  • Add Say. Change the string to "The quotient is " + str(quotient).
  • Drop Wait inside the function, after the .say() command.

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)