I suspect the indentation/syntax errors are issues with SO and/or lazy copying, as I can replicate your failure example with fixed code:
Everything is compared lowercase except the vowels
list, which is in all caps. it needs to be aeiou
, as A
!= a
and everything else is lowercase.
You still have to fix your syntax, but this solves the question as asked.
solved Pig Latin Translator won’t give out a word