5. Check Yourself ... Some More



Oops! Did you accidentally delete the variable named original?

syntax error

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
raw_input("Enter a word:")
original = raw_input ('Prompt')
if len(original) > 0:
    print True
    print "empty"
    if has_chars(the_string) and the_string.isalpha():
    print False
    print "empty"


You are overthinking this... try using this as a template:

print 'Welcome to the Pig Latin Translator!'

userGeneratedString = raw_input("A Prompt")
if len(userGeneratedString) > 0 and userGeneratedString.isalpha():
    print userGeneratedString
    print "string"


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