aboutsummaryrefslogtreecommitdiff
path: root/challenge-279/deadmarshal/python/ch2.py
blob: 915438046e2eba36f62b14213d83404c39feca18 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python

def split_string(s):
  vowels = 'aeiouAEIOU'
  return sum(s.count(v) for v in vowels) % 2 == 0

print(split_string('perl'))
print(split_string('book'))
print(split_string('good morning'))