hours=0 hleft=0 minutes=0 mleft=0 seconds=0 empty=0 number=int(input("enter a number of seconds")) hleft=number%3600 hours=(number-hleft)/3600 mleft=hleft%60 minutes=(hleft-mleft)/60 seconds=mleft round(hours,1) print(hours,"h",minutes,"m",seconds,"s")