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: ['U', '3969', 'X', 'D', '1321', '749', '6621', 'f', 'd', 'i', 's', '8399', 'P', '9363', '495', 'e', 'o']

SOLUTION: U, X, D, f, d, i, s, P, e, o, 3969, 1321, 749, 6621, 8399, 9363, 495

PROBLEM: ['u', 'x', 'x', '905', '2635', 'H', '8797', '1695', '3545', 'e', '9241', '3829', '9471', 'm', '97', 'h', '5031']

SOLUTION: u, x, x, H, e, m, h, 905, 2635, 8797, 1695, 3545, 9241, 3829, 9471, 97, 5031

PROBLEM: ['W', 'p', 'f', 'w', '1927', '2763', 'C', '2047', '7009', '7705', '5017', 'X', 'Z', 'c', 'O', 'p', 'n', '7685', '9255', 'L', '9653', '4471', '9485', 'l', 'H', '9169', 'H', 'O', '995', 'G']

SOLUTION:
W, p, f, w, C, X, Z, c, O, p, n, L, l, H, H, O, G, 1927, 2763, 2047, 7009, 7705, 5017, 7685, 9255, 9653, 4471, 9485, 9169, 995