Check yourself PygLatin


The problem I am having is shown in the attached picture

The code as shown doesn't work; however if I replace the 'return True' line with 'print original' it works just fine. I do not understand why the code as shown doesnt work - any explanations? or suggestions to avoid it printing the input word twice?



You can only use return INSIDE A FUNCTION as it states, either print True, or original or something else you want, but you CANNOT use return outside of a function.