It comes out "empty" even though I input my name


It says I can move on next and no Error but every time I input name or whatever characters,
It comes out “empty”. (5/11)
Why?? My code is not right?

print ‘Welcome to the Pig Latin Translator!’

raw_input("Enter a word: ")
original = raw_input()
if len(original) > 0 and original.isalpha():
print original
print “empty”


why do you have raw_input twice? You only need to ask the user for a word once


Thank you! That was the reason…


yea, if you entered in the first prompt/raw_input (which isn’t stored in a variable) and the second one didn’t enter anything, i would explain the empty, which i assumed is what happened

good to hear the issue is resolved :slight_smile:


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