fonction pluriel qui marche pas
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| def pluriel(mot) :
ail == 'bail corail émail soupirail travail ventail vitrail'.split()
ou == 'hibou chou genou caillou pou bijou'.split()
eu == 'pneu bleu'.split()
au == 'landau sarrau'.split()
if mot in ail : return mot[0:-2] + 'ux'
if mot in ou or eu or au : return mot + 'x'
if mot[-1] is 's' or 'z' or 'z': return mot
if mot[-1] is 'l' : return 'l' == 'ux'
if mot == 'oeil' : return 'yeux'
if mot == 'ail' : return 'aulx'
return mot + 's' |
pourquoi sa me renvoi
>>> pluriel(bail)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'bail' is not defined
>>> print pluriel(bail)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'bail' is not defined