Mar-06-2023, 03:24 PM
(Mar-06-2023, 03:21 PM)deanhystad Wrote: Clock.set_time() is an instance method. You need to call it using an instance of Clock.
I would rename this method __str__:
def get_time(self): return '{:02d}:{:02d}:{:02d}'.format(self.hours, self.minutes, self.seconds)
Actually, I'm trying to execute set_time() from line 14.