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: ['4861', 'f', 'G', 'J', '3741', '8033', 'h', '6061', '4901', '3603', '4971']

SOLUTION: f, G, J, h, 4861, 3741, 8033, 6061, 4901, 3603, 4971

PROBLEM: ['d', 'W', 'u', 'v', '5955', '4961', '8869', '9733', 'd', '2055', '7871', '8605', '2879', 'F', '8365', 'y', '2919', '4393', 'L', '7207', '9489', '8949', '6279', '5209', '2551', 'd', '5777', '6905', '4421', 'g', 'g', '6205', 'Z', 'B', 'q', 'v', 'n']

SOLUTION:
d, W, u, v, d, F, y, L, d, g, g, Z, B, q, v, n, 5955, 4961, 8869, 9733, 2055, 7871, 8605, 2879, 8365, 2919, 4393, 7207, 9489, 8949, 6279, 5209, 2551, 5777, 6905, 4421, 6205