Repeating myself but: You need to use print when you call the function to see what it returns. Otherwise you will only see the final print. Speaking of which
Should this be a return or a print ? Check the instructions.
Repeating myself but: You need to use print when you call the function to see what it returns. Otherwise you will only see the final print. Speaking of which
Should this be a return or a print ? Check the instructions.
Thank you for the hint that the function should just RETURN the string, not really do print things. I guess many people struggled with this for hours, like me ![]()
Many people do mix up return and print I guess because they are both an “output” or “result”
They are different though, and the instructions are always specific in what they ask for
code removed by moderator
The final code, you just had to return the value which you were printing and had to print the function
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.