Ahoy! (or Should I Say Ahoyay!)


#1
a_word= raw_input("please input a word :")
if len(a_word) > 1 and a_word.isalpha():
    b_word=a_word[1:len(a_word)] + a_word[0] + "ay"
    print b_word
else:
    print "empty"

please input a word : Pig Latin
empty
None

Oops, try again. It looks like you printed "please input a word :" instead of "Pig Latin"

why?


#2

oh! my god! Turned out to be so!

print 'Pig Latin'