I am completely new to Python and need help to convert my output from seconds to hhmmss format. So instead of the output saying 182.79569892473117 seconds, I would like the output to be 0 hours, 3 minutes, 3 seconds.
def main():
#closest distance
c = 34000000
#farthest distance
f = 249000000
#average distance
a = 139000000
#time = distance/speed
closest = c / 186000*1
farthest = f / 186000*1
average = a / 186000*1
print("The photo will take ",closest,"seconds to reach home.")
print("The photo will take ",farthest," seconds to reach home.")
print("The photo will take ",average," seconds to reach home.")
main()