def __init__ ( self , interval , key ) : self . interval = interval self . key = key
set range in the constructor python
Constructor . See class docstring for parameter details .
def __init__(self, interval, key):
    """Constructor. See class docstring for parameter details."""
    self.interval = interval
    self.key = key