(Solved) : Exercise 1 Change Method Set Time Change Code Method Set Time Make Sure Hour Must Interval Q33026698 . . .
Must be coded in Python for this exercise
Exercise 1: Change the method set Time .Change the code of the method set Time to make sure that: – hour: must be in the interval O s hour s 23 minute: must be in the interval 0s minute s 59 – seconde: must be in the interval 0 s second s 59 >>> timel.set Time (25,10, 63) >>>timel Call this method in init they are incorrect also to correct the values if 15 Exercise 1 (suite) Add the folowing methods for the class Time İsBefore (t2) returns True if the time represented by self is before the time of t2, otherwise False. Duration (t2) returns a new object Time with the number of hours, minutes and seconds between self and t2 Test your methods in the main program or interpretor >>t1-Time (12, 4,0) >>> t2-Time (10,2,1) >>>t2.set Time (12, 45, 2) >> tl.isBefore (t2) True >>>tl.duration (t2) 0:41:2 tl.isBefore(t2) False >>>t2.isBefore(tl) True 16 Show transcribed image text
Expert Answer
Answer to Exercise 1 Change Method Set Time Change Code Method Set Time Make Sure Hour Must Interval Q33026698 . . .
OR