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: ['4367', 'd', '869', '9437', '1241', '5197', '9561', '1617', '1021', '2239', '6355', 'G', 'P', '5951', 'S', 'j', '617', 'w', 'T', 'j', 'R', 'h', 'f', 'g']

SOLUTION: d, G, P, S, j, w, T, j, R, h, f, g, 4367, 869, 9437, 1241, 5197, 9561, 1617, 1021, 2239, 6355, 5951, 617

PROBLEM: ['P', '5565', '8149', '8345', 'r', 'G', '3633', '545', 'R', 'W', 'p', 'Y', '9983', '43', '8235', 'L', 'z', '7663', 'R', '817', 'e', '6287', 'b', 'Q', '4067', 'z', '1803', '5539', '9469', 'c', '275', '1391', '5899', 'o', 't', 'B', 'o', 'b', 'c']

SOLUTION: P, r, G, R, W, p, Y, L, z, R, e, b, Q, z, c, o, t, B, o, b, c, 5565, 8149, 8345, 3633, 545, 9983, 43, 8235, 7663, 817, 6287, 4067, 1803, 5539, 9469, 275, 1391, 5899

PROBLEM: ['2561', '3179', 'Y', '9915', 'Z', '9123', 'F', '2079', '5191', '3411', 'D', '6753', '7903', 'N', '5023', 'p', 'f', 'L', '5249', '1507']

SOLUTION:
Y, Z, F, D, N, p, f, L, 2561, 3179, 9915, 9123, 2079, 5191, 3411, 6753, 7903, 5023, 5249, 1507