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: ['4259', '4973', '181', '5487', '825', 'E', '1663', '9783', 'U', 'a', 'W', '3997', 'M', 'x', 'M', 'h', '4489', '9773', 'f', '3967', '8857', 'Z', 'O', 'O', 'Q', 'K', '8201', 'U']

SOLUTION: E, U, a, W, M, x, M, h, f, Z, O, O, Q, K, U, 4259, 4973, 181, 5487, 825, 1663, 9783, 3997, 4489, 9773, 3967, 8857, 8201

PROBLEM: ['g', 'g', '9271', 'D', '9667', 'x', '117', 'E', '4013', 'D', 'M', 'Y', '3887', '5931', '273', '5333', 'Q', '1303', '4517']

SOLUTION: g, g, D, x, E, D, M, Y, Q, 9271, 9667, 117, 4013, 3887, 5931, 273, 5333, 1303, 4517

PROBLEM: ['Z', 'C', 'O', 'o', 'B', 'M', 'O', 'K', '8919', '5311', '1497', '2743', '7455', 's', '3169', '4695', 'j', '4685', 'q', '7705', 'D', 'j', 'K', '569', 's', '1823', 'r', 'B', '9017', 'd', 'b', 'C', '201', '4255', 'e', '9737']

SOLUTION:
Z, C, O, o, B, M, O, K, s, j, q, D, j, K, s, r, B, d, b, C, e, 8919, 5311, 1497, 2743, 7455, 3169, 4695, 4685, 7705, 569, 1823, 9017, 201, 4255, 9737