Log in to save your progress.
<< Back to problems
Note! The window is too narrow to use Pythonlab.dev. Use a device with a keyboard!

The sum of dice rolls

Prerequisites: Basic course part I

Ask the user how many dice n they want to roll. Then randomize n numbers between 1 and 6 and sum them up. Print the result (only the number).

Feel free to test many dice. Does the sum match what you expect?

Example input

1

Example output

3

Example input

10

Example output

36

Login to save your progress and your code.

Create

Write your code here.

-- Output from your program will be here --