Unsure how to define the empty string?



Code is a bit off...
Traceback (most recent call last):
File "python", line 7, in
NameError: name 'empty_string' is not defined

not sure how to define the empty string...

print 'Welcome to the Pig Latin Translator!'

original = raw_input("Enter a word:")

if len(empty_string) > 0:
    print "Greater."
    print "empty"


Instead of empty_string just put in original in the parentheses, you are checking if original's input is empty. :slight_smile:


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