You need to do a check for all the vowels separately.
Currently, your if condition is evaluated as: -
if (low_original[0] == 'a') or 'e' or 'i' or 'o' or 'u':
or
returns the first true value in its condition, which will either True
or e
here, depending upon your first condition is True or not. Now, since 'e'
is evaluated to True
, so both the values are true
, hence your condition will always be true
.
You should do it like this: -
if low_original[0] in 'aeiou':
or: -
if low_original[0] in ('a', 'e', 'i', 'o', 'u'):
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…