Python Beginner Solution
Tried to make a simple solution. \n1. Loop through initial list, check for odd/even, and append to an odd_list or even list\n2. Combine the lists with slicing t
Tried to make a simple solution. \n1. Loop through initial list, check for odd/even, and append to an odd_list or even list\n2. Combine the lists with slicing to alternate odd/even lists\n\n```class Solution:\n    def sortArrayByParityII(self, A):\n        """\n        :type A: List[int]\n        :rtype: List[int]\n        """\n        odd_list = []\n        even_list = []\n        \n        for i in A:\n            if i % 2 == 1:\n                odd_list.append(i)\n            else:\n                even_list.append(i)\n\n        result = [None]*(len(odd_list)+len(even_list))\n        result[::2] = even_list\n        result[1::2] = odd_list\n        return result
[]