10/11 PygLatin


#1

Someone please help! I have no idea what's going on! This is what it looks like:

It should say ellohay but it's saying llohay instead but it still says it's correct. What am I doing wrong?


#2

Remember the steps needed to get your word translated,

  1. Move first letter to end
  2. Add ay to end

I should also note that the real pig latin needs to change ay to way when there is a vowel at the start but is unnecessary for this course.

So you only need,

original = "word"
if original.isalpha():
    print(word[1:] + word[0] + 'ay')
else:
    print("empty")