Look at your code:
print(str(months) + str(days) + str(hours) + str(seconds))
There are a couple of things wrong with that.
Firstly, where are the minutes?
Secondly, if we assume these values:
months = 12
days = 13
hours = 8
minutes = 26
seconds = 59
What does your code print?
Answer:
1213859
Which is - let's be honest here - meaningless.
The code you show in the "example code" about temperatures doesn't just do this:
print(str(temperature) + str(result))
Does it?
It does this:
print(str(temperature) + str("° ") + fromScale + " is " + str(result) + "° " + toScale)
Which adds a lot of additional information that helps the user to understand what you are presenting to them.
So probably what your teacher is saying is: "give me data that I can understand instead of a single number".
But ... you have the whole question he set you, not me!