Last active
September 14, 2015 04:58
-
-
Save IAlwaysBeCoding/a2b78caeb96cc582ab2b to your computer and use it in GitHub Desktop.
python puzzle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S = 'coffee Tea Lemonade' | |
print [sum(1 for l in word if l in ('a','e','i','o','u','A','E','I','O','U')) for word in S.split(' ')] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Forgot to add to check for caps.