2.
Write a program that rolls 3 20-sided die and adds themtogether. Make sure to display their
output so you can use it in your Dungeon and Dragons game.
Sample output 1:
You rolled a 60.
Sample output 2:
You rolled a 3.
IN PYTHON
Answer
from random import randintd1 = randint(1, 20)d2 = randint(1, 20)d3 = randint(1, 20)print(“You rolled a ” + str(d1 + d2 + d3) + “.”)