def func(s):
    hour = int(s.split(':')[0][-2:])
minute = int(s.split(':')[1][:2])
suffix = s.split(':')[1][2:4]
return [hour, minute, suffix]
answer = map(func, open_info)
print(answer)
Сжатие нескольких списков