Question: Python GUI That converts Seconds to Days, Hours, and Minutes. This is the code I have so far, need help to make it into a
Python GUI That converts Seconds to Days, Hours, and Minutes.
This is the code I have so far, need help to make it into a GUI
seconds_left = int(input('Enter: time in seconds ')) print() print(seconds_left, 'seconds is: ') day_count = seconds_left//86400 seconds_left -= day_count*86400 hours_count = seconds_left//3600 seconds_left -= hours_count*3600 minutes_count = seconds_left//60 seconds_left -= minutes_count*60 print(day_count, 'days') print(hours_count, 'hours') print(minutes_count, 'minutes') print(seconds_left, 'seconds')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
