Hello world please HELP, i'm not understand what is wrong


#1

pyg = 'ay'
original = raw_input('Entrez un mot :')
mot = original.lower()
premiere = mot [0]
reste= mot[1:]
nouveau_mot= reste + premiere + pyg
if len(original) > 0 and (original.isalpha() and premiere == 'a' or 'e' or 'y' or 'i' or 'u' or 'o'):
print original + pyg
elif len(original) > 0 and (original.isalpha() and premiere != 'a' or 'e' or 'y' or 'i' or 'u' or 'o') :
print nouveau_mot
else:
print 'vide'


#2

Why do you check if mot[0] is one of those?

Just type it like this:

pyg = 'ay'
original = raw_input('Entrez un mot :')
mot = original.lower()
premiere = mot [0]
reste= mot[1:]
nouveau_mot= reste + premiere + pyg
if len(original) > 0 and original.isalpha():
    print nouveau_mot
else:
    print 'vide'

#3

I did it because i wanted to specify 2 circumstances.
the first when the input word biguin with a vowel and
the second when the input word biguin with a consonant
it is why


#4

Your code wasn't wrong, but you should just do as the instructions tell you to pass the lesson ^^


#5

Okey i see ^^.
Thank you Frozentofu.