68.8k views
3 votes
Please help me with this! I’m using Python 3

Please help me with this! I’m using Python 3-example-1
User Jpellat
by
6.5k points

1 Answer

3 votes

Something like this?

h1 = int(input())

m1 = int(input())

s1 = int(input())

h2 = int(input())

m2 = int(input())

s2 = int(input())

s = h2*3600 + m2*60 + s2 - (h1*3600 + m1*60 + s1)

print(s)

User Roger Steinberg
by
6.1k points