Activity: Linear Equation

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.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support