Activity: Call Function

STEP 13: Now that our function's written, we should call it!

  • Let's predict how much sleep a student would get if he or she were 50 minutes from school.
  • In , drag in Return Variable OUTSIDE and BELOW your function.
  • Change my_function(my_var) to line(slope, 50, y_intercept).
  • Change the variable to the left of the = sign from my_var to predicted_sleep.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support