This is a Python program that reads the number of hours, minutes, and seconds as input and converts the time to seconds:
How to write the code in Python
# get the number of hours, minutes, and seconds from the user
hours = int(input("Enter the number of hours: "))
minutes = int(input("Enter the number of minutes: "))
seconds = int(input("Enter the number of seconds: "))
# calculate number of seconds from hours (3600 seconds in an hour)
seconds += hours * 3600
# calculate number of seconds from minutes (60 seconds in a minute)
seconds += minutes * 60
print(f'Seconds: {seconds}')