Posts

Showing posts from January, 2018

[Python] Calculate Difference Between Start And End Time

Image
Hello,          My name is Devendra, today we are going to write our first python program to calculate the difference between two time.  This program will helpful in your college practical and other uses.  So lets start with the introduction,  in this program we used 9 variable of int data type.  User will enter the start time and end time and it will give the result as the difference.  Following is the information about the variables which we used in the program. th1 = start time which is in hour format tm1 = start time which is in minute format ts1 = start time which is in second format th2 = end time which is in hour format tm2 = end time which is in minute format ts2 = end time which is in second format and three variables of type int for the result which are ress = result in seconds resm = result in minutes resh = result in hours here is the code for our program