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', '4877', 'j']

SOLUTION: z, j, 4877

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: ['8799', 'v', '7577', 'V', 's', 'N', 'Z', 'R', '5941', '6273', '3877', 'r', 'D', '3169', 'Y', '8351', '4955', 'W', 'K', 'C', '9759', '2301']

SOLUTION:
v, V, s, N, Z, R, r, D, Y, W, K, C, 8799, 7577, 5941, 6273, 3877, 3169, 8351, 4955, 9759, 2301