Skip to content

Instantly share code, notes, and snippets.

@IAlwaysBeCoding
Last active September 14, 2015 04:58
Show Gist options
  • Save IAlwaysBeCoding/a2b78caeb96cc582ab2b to your computer and use it in GitHub Desktop.
Save IAlwaysBeCoding/a2b78caeb96cc582ab2b to your computer and use it in GitHub Desktop.
python puzzle
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(' ')]
@IAlwaysBeCoding
Copy link
Author

Forgot to add to check for caps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment