Activity: Random Numbers
img

STEP 10: Let's change the range of possible random values.

The two parameters in the random integer command tell the computer the range of numbers you want it to pick from. We have three possible options, so we'll have the computer choose a number between 1 and 3.

  • Change the second integer in .randint() to 3.


# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support