Activity: Cast to String

STEP 14: We're almost done! Now we just need to tell the user the result of our prediction.

Remember, when we want to use a number inside a string, we need to cast it using str().

  • In , drag in Convert to String to the bottom of your program.
  • Change the variable inside the parentheses from my_var to predicted_sleep.
  • Change the variable to the left of the = sign from my_var to sleep_string.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support