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: ['8987', 'M', 'u', 'd', '6277', '4233', 'y', 'D', 'd', '3387', 'n', '9509', '987', 'S', 'c', '6843', '587', '3545', 'Q', 'B', '779', '9547', 'c', 'r']

SOLUTION: M, u, d, y, D, d, n, S, c, Q, B, c, r, 8987, 6277, 4233, 3387, 9509, 987, 6843, 587, 3545, 779, 9547

PROBLEM: ['K', '4733', '749', '693', 'e', 'V', '4975', 'q', 'M', 'U', 'C', '4929', '5541', '9899', 'g', 'p', 'q', 'h', 'A', 'a', 'J', '897', 'N', 'z', '8939', '6949', 'n', 'i', '7161', 'L', 'C', 'c', 'S', 'y', 'n', '543', 'd']

SOLUTION: K, e, V, q, M, U, C, g, p, q, h, A, a, J, N, z, n, i, L, C, c, S, y, n, d, 4733, 749, 693, 4975, 4929, 5541, 9899, 897, 8939, 6949, 7161, 543

PROBLEM: ['S', 'n', 'P', '8799', '4469', 'T', 'o', 'Z', 'j', '927', 'w', '9127', '4981', '6571', 'm', 'D', '8253', '1503', '6671', '4619', 'h', '507', '5739', '1183', '7255', 'y', 'F', '4031', 'S', '1121', '2513', 'd', 'H', '6025', '8607', 'G', 'w', '9015']

SOLUTION:
S, n, P, T, o, Z, j, w, m, D, h, y, F, S, d, H, G, w, 8799, 4469, 927, 9127, 4981, 6571, 8253, 1503, 6671, 4619, 507, 5739, 1183, 7255, 4031, 1121, 2513, 6025, 8607, 9015