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: ['7879', 'h', '5401', 'e', 'B', '9419', 'f', '7509', '2617', 'r', 'q', 'L', '2453']

SOLUTION: h, e, B, f, r, q, L, 7879, 5401, 9419, 7509, 2617, 2453

PROBLEM: ['l', 'i', '4205', '2491', '3715', 'Q', 'c', 'U', 'y', 'u', 'Q', '1171', '7605', '6039', '3699', 'A', '7947', 'B', '5663', 'D', '3857', '1533', 'Q', '6759', 'C', 'S', 'u', '4597', '6829', 'H', '4711', 'N', '9707', '401', '5977', 'O', '8839', '9257', 'H', 'J']

SOLUTION: l, i, Q, c, U, y, u, Q, A, B, D, Q, C, S, u, H, N, O, H, J, 4205, 2491, 3715, 1171, 7605, 6039, 3699, 7947, 5663, 3857, 1533, 6759, 4597, 6829, 4711, 9707, 401, 5977, 8839, 9257

PROBLEM: ['1867', 'O', '3383', '1417', 'D', 'T', '885', 'k', '7913', 'J', '2603', '6345', '8793', '1571', 'a', 'k', '6837', 'g', '1059', '7271', '317', 'G', 'S', '5867', '4265', 'I', 'S', 'n', 'w', '1425', 'A', '6925', '9763', '7653', '6785', 'G', '3977', '9887']

SOLUTION:
O, D, T, k, J, a, k, g, G, S, I, S, n, w, A, G, 1867, 3383, 1417, 885, 7913, 2603, 6345, 8793, 1571, 6837, 1059, 7271, 317, 5867, 4265, 1425, 6925, 9763, 7653, 6785, 3977, 9887