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: ['3497', 'P', 'B', 'L', '2433', 'u', 'y', 'M', 'd', '7085', '8935', '7701', '3829', 'd', 'i', 'd', '4091', 'X', 'Q', 'd', '4139']

SOLUTION: P, B, L, u, y, M, d, d, i, d, X, Q, d, 3497, 2433, 7085, 8935, 7701, 3829, 4091, 4139

PROBLEM: ['R', 'f', '6917', 'K', '8685', 'Z', '4415', '8727', '4979', 'e', 'd', '2161', 'z', '7081', '6895', 'g', 'v', 'r', '3723', '8023', '2721', 'P', 'A', 'a', '6659', '5935', '51', 'P', '2785', 'A', '199', '6547', 's', '4807', '8225']

SOLUTION:
R, f, K, Z, e, d, z, g, v, r, P, A, a, P, A, s, 6917, 8685, 4415, 8727, 4979, 2161, 7081, 6895, 3723, 8023, 2721, 6659, 5935, 51, 2785, 199, 6547, 4807, 8225