Help me please


#1

PygLatin Converter Code

pyg = 'ay'

original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
    word = original.lower()
    first = word[0]
    if first == ('a' or 'e' or 'i' or 'o' or 'u'):
        new_word = word + pyg
        print new_word
    else:
        new_word = word[1:] + first + pyg
        print new_word
else:
    print 'empty'

this my code
when i type in console junaid
console give me this output unaidjay and show this( error Oops, try again. It looks like you printed "Enter a word:" instead of "Pig Latin")
idk what's the mistake please help me


#2

This is not asked for in the instructions. Even though it is a factor in traditional Pyg-Latin, it is not included within this lesson. Follow the instructions as closely as possible without deviation for best results.


#3

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