We need to input two distinct times and subtract the first from second to find the difference between both.
Clear Doubts with Computer TutorIn case you’re facing problems in understanding concepts, writing programs, solving questions, want to learn fun facts | tips | tricks or absolutely anything around computer science, feel free to join CTs learner-teacher community: students.computertutor.in
Welcome to Computer Tutor!
Please enter the first time:0900
Please enter the second time:1730
8 hours 30 minutes
The first time and second time are taken input from user and difference between the times is calculated and printed on console.
Basic python functionality is demonstrated in above program.
To view all the lessons in chapter 1: http://computertutor.in/class-12-computer-science/chapter-1/
To view entire class 12 computer science study material: http://computertutor.in/resources/
You cannot copy content of this page