Skip to content

Commit 73fb1b7

Browse files
authored
Update solution.hide.py
1 parent ef6b111 commit 73fb1b7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
def two_timestamp(hr1,min1,sec1,hr2,min2,sec2):
1+
def two_timestamp(hr1, min1, sec1, hr2, min2, sec2):
22
# Your code here
3-
fisrt_hour = hr1 * 3600
3+
first_hour = hr1 * 3600
44
first_min = min1 * 60
5-
final_first = fisrt_hour + first_min + sec1
5+
final_first = first_hour + first_min + sec1
66
second_hour = hr2 * 3600
77
second_min = min2 * 60
88
final_second = second_hour + second_min + sec2
99

1010
return final_second - final_first
1111

12-
13-
# Invoke the function and pass two timestamps(6 intergers) as its arguments
14-
print(two_timestamp(1,1,1,2,2,2))
12+
# Invoke the function and pass two timestamps(6 integers) as its arguments
13+
print(two_timestamp(1, 1, 1, 2, 2, 2))

0 commit comments

Comments
 (0)