Question: using python l Write a program that reads two times in military format (example: 0900 and 1730 ) and prints the number of hours and
Write a program that reads two times in military format (example: 0900 and 1730 ) and prints the number of hours and minufes betiveen the twe imes. Then, it will display the result as shown below. Note that the first 2 digits are from 00 to 23 (they represent the hours) and the last two digits are from 00 to 59 (thay reprosent the minufes) Hint: Convert both times to minutes then subtract and convert back to hours and minules. Sample run 1: Enter time 1: 0905 Enter tame 2: 1245 Diflerence between the 2 times is 3 hours and 40 minutes Sample run 2 : Enter Lime 1:1055 Enter time 2: 1305 Difference between the 2 times is 2 hours and 10 minutes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
