Help. Why my code dosen't work?


#1

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
original.isalpha()
print "original"
else:
print "empty"


#2

Your raw_input needs to have parentheses and a quotation marks,

should be,

original = raw_input("Some text ")


#3

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,


#4

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