I have a homework question which asks to read a string through raw input and count how many vowels are in the string. This is what I have so far but I have encountered a pro
you can use filter for a one liner
print len(filter(lambda ch:ch.lower() in "aeiou","This is a String"))