Write a complete program that reads from the user a natural number that represents the duration of a process in seconds and then displays this duration on the screen in the format <hour>, <minute>, <second> . The program should use large units of time only if they are necessary, that is, if the user writes the value 4120, the program should display: 1 hour 8 minutes 40 seconds, while if the user writes the value 265, the program should display 4 minutes 25 seconds (and not 0 hours 4 minutes 25 seconds).
Script def duration(s): h = s // 3600 m = (s % 3600) // 60 s = s - h * 3600 - m * 60 return (f'{h} h {m} min {s} sec') duration(4120)