1,760
edits
Changes
→Part 1 - Simple Object Class with external functions
def valid_time(t):
"""check for the validity of the time object attributes:
24 > hour > 0 , 60 > minute > 0 , 60 > second > 0 """
if t.hour < 0 or t.minute < 0 or t.second < 0:
return False