I have a coding assignment where we are supposed to find the difference between two timestamps. I have completed the code for that however it is supposed to print as "x hour(s) y minute(s) z second(s)".
I tried using
print('hours" + (x), 'minutes' + (y), 'seconds' + (z)
but it is not working.
x = int(((a-b) // 3600))
y = int(((a-b) % 3600) // 60)
z = int((a-b) % 60 )
this is the code I am using.