Wow, this dude just found 11 legit (almost 13) ways to detect vowels in a string in python.Such a great depth, the benchmarks feels so intuitive as why each way performs the way it does.
Here are all the ways it did it
For loop: Simple, readable. Fastest for small strings
C-Styled for loop: Uses or comparisons, but surprisingly much slower
Nested for loop: Totally exhaustive, but slow
Set intersection: Clever and clean. Great when strings are long or vowels are sparse