TASK DEFINITION: In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to collate all the alphabetical elements at the start of the list followed by all the numerical elements of the list. Maintain the order in which the alphabetical elements appear in the given input list, and do the same for the numerical elements.
PROBLEM: ['7227', '8665', '2091', 'H', 'j', '4261', 't', 'W', '3523', 'Q', '8123', '165', '6165', '8429', '3537', '7967', 't', 'e', '6155', '1511', '5999', '7221', '4383', '8345', '9725', 'e', 'L', 'G', '4879', '8095', 'a', 'N', 'M', '3459']

SOLUTION: H, j, t, W, Q, t, e, e, L, G, a, N, M, 7227, 8665, 2091, 4261, 3523, 8123, 165, 6165, 8429, 3537, 7967, 6155, 1511, 5999, 7221, 4383, 8345, 9725, 4879, 8095, 3459

PROBLEM: ['M', 'N', 'M', '7683', '2723', '3135', 'G', 'E', '5519', 'D', 'V', '8531', '6151', '7465', 'W', 'X', 'v', '3467', 'i', '335', 'L', 'P', 'f', '6647', '5287', 'N', 's', 'd', '2565', '8403', '3921', '2757']

SOLUTION: M, N, M, G, E, D, V, W, X, v, i, L, P, f, N, s, d, 7683, 2723, 3135, 5519, 8531, 6151, 7465, 3467, 335, 6647, 5287, 2565, 8403, 3921, 2757

PROBLEM: ['1497', 'U', 'B', '3183', '2963', '8773', '1917', '5069', '6871', 'Q', 'g', 'M', '4685']

SOLUTION:
U, B, Q, g, M, 1497, 3183, 2963, 8773, 1917, 5069, 6871, 4685