HH: mm à mins en python

s = input()
s = int(s[:-3]) * 60 + int(s[-2:])
print(s)
Bloody Baboon