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: ['h', '2041', '7621', 'f', 'S', '665', 'x', 'g', 'E', '4371', '6589', 'l', 'C', '789', 'm', '2215', '1017', '3089', 'X', '8773']

SOLUTION: h, f, S, x, g, E, l, C, m, X, 2041, 7621, 665, 4371, 6589, 789, 2215, 1017, 3089, 8773

PROBLEM: ['I', 't', 'h', 'a', '295', 'E', '4939', '6115', 'O', '729', '9207', 'C', '5595', 'j', '3429', 'j', '1493', 'R', 'g', 'J', 'j', '4699', 'H', '9435', '7419', 'P', '8639', 'x', 'j', '9551', 'h', '5977', '6747', '6355', 'B', '6113', 'n', 'd', 'v', 'R']

SOLUTION: I, t, h, a, E, O, C, j, j, R, g, J, j, H, P, x, j, h, B, n, d, v, R, 295, 4939, 6115, 729, 9207, 5595, 3429, 1493, 4699, 9435, 7419, 8639, 9551, 5977, 6747, 6355, 6113

PROBLEM: ['X', '2709', 'B', 'Z', 'V', '2047', '6527', 'z', 'L', '7403', '6825', '7031', 't', 'a', 'v', 'Z', '165', '8129', 'a']

SOLUTION:
X, B, Z, V, z, L, t, a, v, Z, a, 2709, 2047, 6527, 7403, 6825, 7031, 165, 8129