Python one line
\nclass Solution(object):\n    def sortArrayByParity(self, A):\n        """\n        :type A: List[int]\n        :rtype: List[int]\n        """\n\n        retur
```\nclass Solution(object):\n    def sortArrayByParity(self, A):\n        """\n        :type A: List[int]\n        :rtype: List[int]\n        """\n\n        return [i for i in A if i % 2 ==0]+[i for i in A if i % 2 != 0]\n\t\t```
['Python']