Python3 - Simple Solution - Beats 99%
\nclass Solution:\n    def sortArrayByParityII(self, nums: List[int]) -> List[int]:\n\n        answer=[]\n\n        # We split nums into even entries and odd en
```\nclass Solution:\n    def sortArrayByParityII(self, nums: List[int]) -> List[int]:\n\n        answer=[]\n\n        # We split nums into even entries and odd entries\n        even = [n for n in nums if n%2 == 0]\n        odd =  [n for n in nums if n%2 == 1]\n\n        # We fill answer with even and odd entries \n        for a, b in zip(even, odd):\n            answer.append(a)\n            answer.append(b)\n        \n        return answer\n```
['Python3']