Oct-27-2020, 07:41 PM
Is there a reason you can't use
str()
like you do for your hours and minutes? You could assign it to a new variable or just use it directly in your print statement.print(hour_value+":"+min+":"+str(sec_value))Also, it would be best to avoid using
min
as a variable name since it is the name of a built-in function in Python.