Help. Why my code dosen't work?


print 'Welcome to the Pig Latin Translator!'

Start coding here!

name = raw_input("Enter a word:")
original = raw_input
if len(original) and original.isalpha():
print origina
print "original"
print "empty"


Your raw_input needs to have parentheses and a quotation marks,

should be,

original = raw_input("Some text ")


and here,

you are referring to a variable that does not exist. origina instead of original

Lastly you can do without these two lines taht come after your if condition,


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