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: ['411', '6303', 'F']

SOLUTION: F, 411, 6303

PROBLEM: ['583', '7845', '2439', '1805', '9669', '3605', '811', '5023', 'X', '7057', '6475', '1535', 'd', '8335', '2403', '2541', 'B', 'c', 'e', 'l', '8273', 'F', '8041', '9141', 'E', 'k', '1511', '9801', '8031', 'U', '7371', 'H', 'J', 'c', '5245']

SOLUTION:
X, d, B, c, e, l, F, E, k, U, H, J, c, 583, 7845, 2439, 1805, 9669, 3605, 811, 5023, 7057, 6475, 1535, 8335, 2403, 2541, 8273, 8041, 9141, 1511, 9801, 8031, 7371, 5245