Originally Posted by triko
I would put the list of vowels into function because I reuse this in other point of program
But i don't know how to do!!!
The best way is to assign it to a variable, then pass the variable list into functions in the future, rather than calling the function inside it. Much more efficient - less operations and less memory.