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


#1

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
else:
print “empty”


#2

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


#3

Thank you! That was the reason…


#4

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:


#5

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