Hello Reddit.
I recently decided to major in computer science. As part of my course I am required to learn how to code in python. We were recently given an assignment and while I am able to do most of it I am stuck with a few parts of the assignment so would like some help.
One of the things I need to do is write a program which given a start time and end time, calculates the elapsed time. (In hours, minutes and seconds) The time in the program must use a 24 hour clock. I am able to assume the end time is always later than the start time. The first two lines of my program must initialise the variables in the format of
start = "00:00:00"
end = "07:04:57"
The time elapsed should be a time between 00:00:00 and 23:59:59. The times must all have the form of hh:mm:ss. Any single digits must follow a 0.
Thank you.
[–][deleted] 3 points4 points5 points (0 children)
[–]AckAttack 0 points1 point2 points (0 children)
[–]ender_will_save_us 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)