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: ['B', '8107', '9083', 'B', '9897', 'a', 'Q', 'k', 'C', 'e', '4681', '5411', '3143', 'j', '835', 'b', 'C', 'H', '3295', '8187', 'z', 'N', '947', '1395', '6893', 'R', 'J', '3361', 'x', '6389']

SOLUTION: B, B, a, Q, k, C, e, j, b, C, H, z, N, R, J, x, 8107, 9083, 9897, 4681, 5411, 3143, 835, 3295, 8187, 947, 1395, 6893, 3361, 6389

PROBLEM: ['2775', 'u', 'E', 'U', '1205', 'p', '9771', '1329', 'E', '3493', 'G', 'z', '317', '51', '6395', '9727', 'Y', '2907', '3611', '3853', 'v', '8317', '9225', 'K', 'Z', 'j', 'y', 'T', 'h', 's', 'X', '9725', 'u', '1607', 'T']

SOLUTION: u, E, U, p, E, G, z, Y, v, K, Z, j, y, T, h, s, X, u, T, 2775, 1205, 9771, 1329, 3493, 317, 51, 6395, 9727, 2907, 3611, 3853, 8317, 9225, 9725, 1607

PROBLEM: ['a', 'I', '8425', '6291', '3383', 'K', 'y', '4203', 'M', '9025', '4515', '4207', 'O', '8157', 'X', 'k', 'r', '4315', '4767', '7127', '3847', 'Y', 'w', 'g', 'D', '5689', 'e', '4297', 'N', '6047', '4419', 'z', '6145', '71', '8023', '3061', 'i', 'X', '5149']

SOLUTION:
a, I, K, y, M, O, X, k, r, Y, w, g, D, e, N, z, i, X, 8425, 6291, 3383, 4203, 9025, 4515, 4207, 8157, 4315, 4767, 7127, 3847, 5689, 4297, 6047, 4419, 6145, 71, 8023, 3061, 5149