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: ['D', '8577', '7971', 'x', 'm', '8323', 'T', '5257', '3341', '3963', '7895', '1465', '1987', '9909', 'o', '245']

SOLUTION: D, x, m, T, o, 8577, 7971, 8323, 5257, 3341, 3963, 7895, 1465, 1987, 9909, 245

PROBLEM: ['L', 'r', '2509', 'P', '1789', 'Z', '3021', '8203', 'V', 'K', '4709', 'd', 'u', '17', 'B', '6569', 'P', '4831']

SOLUTION: L, r, P, Z, V, K, d, u, B, P, 2509, 1789, 3021, 8203, 4709, 17, 6569, 4831

PROBLEM: ['D', '3207', '1793', 'y', '5971', '6713', 'A', '4815', '7583', '8049', 'v', 'W', 'F', 'D', 'g', 'R', 'D', 't', '401', '1717', '6715', '9961', 'x', '3519', '5945', 'n', 'w']

SOLUTION:
D, y, A, v, W, F, D, g, R, D, t, x, n, w, 3207, 1793, 5971, 6713, 4815, 7583, 8049, 401, 1717, 6715, 9961, 3519, 5945