I've made a class for time. Now I want to define a function which shows whether one time is greater than the other or not. I've written my code to this level:
class Time:
def __init__(self,Hour_value=0,Minute_value=0,Secound_value=0):
self.Hour = Hour_value
self.Minute = Minute_value
self.Secound = Secound_value
def __repr__(self):
return str(self.Hour) + ":" + str(self.Minute) + ":" + str(self.Secound)
What should I do for the rest? Is There a built-in function for this task?