PygLatin 11/11


#1

pyg = 'ay'
word = original.lower()
original = raw_input('Enter a word:')
first = "hi"[0]
new_word = word + first + pyg
new_world = [1:len(new_world)]
if len(original) > 0 and original.isalpha():
print original
else:
print 'empty'

help me pls


#2

You should be printing the "new_world" var not "original" Also make sure spacing is correct and everything is in the correct place (The if statement should be before everything) since it asks if something is true than do the code inside of the if statement. and the only thing in your if statement is a print function

pyg = 'ay'
original = raw_input('Enter a word:')

if len(original) > 0 and original.isalpha():
    word = original.lower()
    first = word[0]
    new_word = word + first + pyg
    new_word = new_word[1:len(new_word)]
    print new_word
else:
    print 'empty'