Check yourself PygLatin


#1

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?

Cheers


#2

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.