STEP 12: Let's finish up our function!

Using a return statement will allow us to use the value y, outside of the function.

  • Inside your function, rewrite the multiplication statement, so it looks like this: y = m * x + b.
  • Then, in , drag in Return Statement INSIDE your function.
  • Change the variable after return from my_var to y.

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)