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', '2429', 'V', 'a', 'a', 'C', '325', 'a', '5107', '2665', '4305', 'R', 'z', '6109', 'Y', 'W', '1261', 'r', 'H', '1563', '5811', 'z', '5627', 'k', '529', 'e', '9687', 'G', 'K', 'E', '401', '8925', '4555', '8603', '8345', '3151', '1367']

SOLUTION: Z, V, a, a, C, a, R, z, Y, W, r, H, z, k, e, G, K, E, 2429, 325, 5107, 2665, 4305, 6109, 1261, 1563, 5811, 5627, 529, 9687, 401, 8925, 4555, 8603, 8345, 3151, 1367

PROBLEM: ['y', 's', 'k', 'X', 'U', '125', '1613', '5039', '9567', 'o', 'S']

SOLUTION: y, s, k, X, U, o, S, 125, 1613, 5039, 9567

PROBLEM: ['X', 'P', 'o', 'r', 'n', '8527', '2679', 'm', '2363', 'a', 'J', '3031', 'q']

SOLUTION:
X, P, o, r, n, m, a, J, q, 8527, 2679, 2363, 3031