import random class die(object): def __init__(Self, sides=6): Self.sides= sides def roll(self): self.roll_count = random.randint(1,Self.sides) def get (self): return self.roll_count def numsides(self): return self.sides def __str__(self): return str(self.sides) def __repr__(self): return format(self.sides) def rollDice(rolls, sides): d1 = die() d2 = die() count = 0 while count <=rolls: d1.roll() d2.roll() print(f'{count} : {d1.get()} - {d2.get()}') count +=1