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: ['Z', '3699', 'b', '117', 'R', 'D', '6799']

SOLUTION: Z, b, R, D, 3699, 117, 6799

PROBLEM: ['2217', '9971', 'M', 'f', '407', 'q', '1233', 'f', '6335', '8037', 'l', 'Z', 'w', '8193', '891', 'X', '7163', 'P']

SOLUTION: M, f, q, f, l, Z, w, X, P, 2217, 9971, 407, 1233, 6335, 8037, 8193, 891, 7163

PROBLEM: ['9087', '2125', 'P', '1435', '155', '487', 'B', 'M', '7093', '8345', 'k', 'f', '7651', 'd', '1077', 'g', 'i', 'X', 'r', 'N', 'k', '5789', '9047', 'k', '5141', '6411', 'I', '8767', 'H', 'U', '4539', '8231', 'j', 'H', '2597', '295', '3417', 'X', 'v']

SOLUTION:
P, B, M, k, f, d, g, i, X, r, N, k, k, I, H, U, j, H, X, v, 9087, 2125, 1435, 155, 487, 7093, 8345, 7651, 1077, 5789, 9047, 5141, 6411, 8767, 4539, 8231, 2597, 295, 3417