from random import randrange
class Dice:
  def __init__(self):
    self.num=1
  def roll(self):
    self.num=randrange(1,7)
  def getValue(self):
    return self.num

class NewDice(Dice):
  """NewDice is a SUBCLASS of the
SUPERCLASS Dice. It provides the 1
extra method set()"""
  def set(self,x):
    self.num=x
    
d1=Dice()
print (d1.getValue())
d1.roll()
print (d1.getValue())
#d1.set(34)

d2=NewDice()
print (d2.getValue())
d2.set(75)
print (d2.getValue())
d2.roll()
print (d2.getValue())
