I’m trying to complete the coding challenge, but none of the tests are being submitted. It outputs the correct string when the temperature and target are equal or not but also keeps returning none, I’m assuming temp’s data type when I remove the “return temp”. My issue is that when I add the return temp, it shows the temp variable’s new value but still doesn’t complete the challenge. What can I do?
You are getting an extra temp value but in the test case they doesn’t want that value to print. So you need to handle the function correctly to return the correct value.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.