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', '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: ['7361', 'H', 'd', '1811', '8801', 'D', '245', 'i', 'q', '4507', '3811', '4643', '5653', '5799', 'A', 'Q', 'X', 'i', '1595', 'U', 'X', 'z', 'X', '3265', 'O', 'j', 'n', '573', 'A', 'J', '769', '5933', 's', 'I', '9749']

SOLUTION: H, d, D, i, q, A, Q, X, i, U, X, z, X, O, j, n, A, J, s, I, 7361, 1811, 8801, 245, 4507, 3811, 4643, 5653, 5799, 1595, 3265, 573, 769, 5933, 9749

PROBLEM: ['W', '5805', 'g', 'J', '4009', 'L']

SOLUTION:
W, g, J, L, 5805, 4009