Check Yourself... Some More


print ‘Welcome to the Pig Latin Translator!’

Start coding here!

original=raw_input(“Enter a word:”)
if len(original) > 0:
print original
print ‘empty’

what is wrong please help


what is error message ?? your code look correct


The error is
Oops, try again. Did you remember to use .isalpha() in your code?


so you should use isalpha() function to verify if the string consists of alphabetic characters only.
example in your code :
original.isalpha() ; should return True if oriniginal has alphabetic characters only and False if not


I figured it out