Boolean operation in string containing numbers

Hi,
I have a string in a file . The string looks like,

00:00:08
00:01:03
01:03:50
and so on.

I am reading the string and split them .
In 00:00:08 the first 00 is hour , 2nd 00 is minute and third 08 is seconds.
I need to have the total seconds . I am trying to get 003600 + 0060+08 = 08 seconds.
But this operation is not possible. When I am multiplyting the numbers it is just iterates 3600 times.

How do I can solve this ?

Thank you

You need to convert the string into an integer that you can do arithmetic on.

hour = int(‘07’)

Tip: use pre-formatted text to show code, its an option in the cogwheel menu.

My guess is that you’re coding like this (for example, with the minutes to seconds):
int(m * 60)

… when you should be coding like this:

int(m) * 60