Pyhton3 oneliner using startswith()
\n\n# Code\n\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        count = 0\n        for i in words:\n            if s.start
\n\n# Code\n```\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        count = 0\n        for i in words:\n            if s.startswith(i):\n                count += 1\n        return count\n\n        #One Liner\n\n        return sum(1 for i in words if s.startswith(i))\n```
['Python3']