python example (iimport random class die(object)derive from object for new style classes """simulate generic die ""def __init__(selfsides= )"""initialize and roll the die sides -number of faceswith values starting at one (default is ""self _sides sides leading underscore signals private self _value none value from last roll self roll(def roll(self)"""roll the die and return the result ""self _value random randrange(self _sidesreturn self _value