Use function diceroll(n) to roll n number of dice. This function will report how many of each side is rolled.
from random import * sides = ["1","2","3","4","5","6"] def diceroll(n): ones = 0 twos = 0 threes = 0 fours = 0 fives = 0 sixes = 0 for i in range(n): result = choice(sides) if result == "1": ones += 1 elif result == "2": twos += 1 elif result == "3": threes += 1 elif result == "4": fours += 1 elif result == "5": fives += 1 else: sixes += 1 print("Ones: " + str(ones)) print("Twos: " + str(twos)) print("Threes: " + str(threes)) print("Fours: " + str(fours)) print("Fives: " + str(fives)) print("Sixes: " + str(sixes))