MCPcopy Create free account
hub / github.com/geekcomputers/Python / main

Function main

time_delta.py:96–110  ·  view source on GitHub ↗

Main function to execute the time delta calculation program.

()

Source from the content-addressed store, hash-verified

94
95
96def main() -> None:
97 """
98 Main function to execute the time delta calculation program.
99 """
100 try:
101 num_test_cases, test_cases = read_test_cases()
102
103 for t1, t2 in test_cases:
104 result = calculate_time_delta(t1, t2)
105 print(result)
106
107 except ValueError as e:
108 print(f"Error: {e}")
109 except Exception as e:
110 print(f"Unexpected error: {e}")
111
112
113if __name__ == "__main__":

Callers 1

time_delta.pyFile · 0.70

Calls 2

read_test_casesFunction · 0.85
calculate_time_deltaFunction · 0.85

Tested by

no test coverage detected