Activity: Four Answers

STEP 5: Let's set up the random variable for our program.

We use a variable to hold the random value. We'll change the arguments to get a number between 1 and 4.

  • Change the the random variable's name from my_var to rand_answer.
  • Change the name of the variable in .Display() from my_var to rand_answer.
  • Change the second integer in .randint() to 4.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support