Python payroll program that reads data from file and calculates

The program must read a file with the format in which the first line contains the hourly rate and each subsequent line contains a start and end time for hours worked.for example
10.0
10:00 16:30
9:00 15:00