I'm now to python and I wanted to know the correct way of doing this. I'm trying to add pieces to make a full string but I get symbols in the string output
def responseLibrary(days, hours, minutes, seconds):
global globalSeconds
response = globalSeconds, " seconds equals "
if days > 0:
response += days, " days "
if hours > 0:
response += hours, " hours "
if minutes > 0:
response += minutes, " minutes "
if seconds > 0:
response += seconds, " seconds "
return response
The output I get looks like this
(10, ' seconds equals ', 10, ' seconds ')