Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Screw it, everyone else is posting code examples:

    def vc(s):
        return len([c for c in s if c in ['a','e','i','o','u']])


Probably s.tolower() or whatever it is in Python.


def vc(s): return len([c for c in s.lower() if c in ['a','e','i','o','u']])




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: