Ahoy! (or Should I Say Ahoyay!)


#1

In a Ahoy problem, my code is right, but the CodeAcademy Code say to me insert "Pig Latin" instead of "Pig Latin"! What can I do?

a_word= raw_input("please input a word to translate to Pig Latin :")
if len(a_word) > 1 and a_word.isalpha():
b_word= a_word + "ay" + str("!")
print b_word
else:
print "empty"

`


#2

a_word = raw_input("please input a word:")
if len(a_word) > 1 and a_word.isalpha():
b_word= a_word + " " + "Latin"
print b_word
else:
print "empty"


#3

If you are on the exercise [Ahoy! (or Should I Say Ahoyay!)] you said you are on, then the error you are getting says to use the key word print to print out the string "Pig Latin".


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.