def main(): print("The Dice Roller program") print() # get number of dice from user count = int(input("Enter the number of dice to roll: ")) # create Die objects and add to Dice object dice = Dice() for i in range(count): die = Die() dice.addDie(die) while True: # roll the dice dice.rollAll() print("YOUR ROLL: ", end="") for die in dice.getTuple(): print(die.getValue(), end=" ") print("\n") choice = input("Roll again? (y/n): ") if choice != "y": print("Bye!") break