code: def between(self, time_):
          
          hour = int(time_[0:2])
          minute = int(time_[3:5])
          return not (
              hour < self.h1 or hour > self.h2 or
              (hour == self.h1 and minute < self.m1) or
              (hour == self.h2 and minute > self.m2)
          )
docs: Compare if the parameter HH:MM is in the time range.