One Liner Python
\n    def countVowels(self, word: str) -> int:\n        return sum((i+1)*(len(word)-i) for i,c in enumerate(word) if c in \'aeiou\')\n
```\n    def countVowels(self, word: str) -> int:\n        return sum((i+1)*(len(word)-i) for i,c in enumerate(word) if c in \'aeiou\')\n```
[]