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: ['G', 'j', '4971', '6923', '961', 'a', 'U', '3943', '6291', 'f', 'w', 'U', '5505', 'Y', '2691', 'u', 'U', '37', 'b', 'i', 'a', 'j', 'w', '5023', '7501', 'q', '8535', 'J', 'q', 'd', '8981', 'X']

SOLUTION: G, j, a, U, f, w, U, Y, u, U, b, i, a, j, w, q, J, q, d, X, 4971, 6923, 961, 3943, 6291, 5505, 2691, 37, 5023, 7501, 8535, 8981

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: ['K', '6691', '8269', 'q', '9933', '8699', 'm', '3003', 'x', '1681', '6733', '8757', '4507', 'r', '8653', 'o', '8255', 'p', 'L', 'Z', '1929', 'b', '9819', '5641', 'j', '6627', 'i', '4859', '3775', '297', '721', '4679', '7435', 'h', 'T', 'A', '5411']

SOLUTION:
K, q, m, x, r, o, p, L, Z, b, j, i, h, T, A, 6691, 8269, 9933, 8699, 3003, 1681, 6733, 8757, 4507, 8653, 8255, 1929, 9819, 5641, 6627, 4859, 3775, 297, 721, 4679, 7435, 5411