Dice Thrower

Dice image

Step 2 – make it two dice

In lots of games you need to throw two dice and add them together.

Think Monopoly, for example.

It's easy to add this to your Python program.

  1. it's up to you whether you start a new program or change the one you already have
  2. Replace your program with the one below
  3. Use the screenshot. This is the full program: don't add it underneath what you already have
  4. Save your program
  5. Run the program to check that it works
  6. Make sure you run your program a few times. You should get a normal pattern of dice throws

You should find that you get lots of 7s and not many 2s or 12s. That's due to probability.

Code helper image