Pooping solution :)
Approach\n Describe your approach to solving the problem. \nPoop the loop\n\n# Complexity\n- Time complexity: O(N)\n Add your time complexity here, e.g. O(n) \n
# Approach\n<!-- Describe your approach to solving the problem. -->\nPoop the loop\n\n# Complexity\n- Time complexity: O(N)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n\n- Space complexity: O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        c = 0\n        for i in words:\n            if i in s[:len(i)]:\n                c+=1\n        return c \n```
['Python3']