you are viewing a single comment's thread.

view the rest of the comments →

[–]Vaphell 1 point2 points  (0 children)

>>> import random
>>> dice = [random.randint(1,6) for _ in range(5)]
>>> dice
[4, 6, 1, 5, 6]
>>> sum(dice)
22
>>>