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: ['T', '5777', '3067', '2309', 'S', 'H', 'e', '5353', '2675', '2233', '7635', '7559', '1797', 'G', '3733', 'm', '3775', 'Q', '3827', '1607', 'M', '2039', 'D', 'w', 'C', 'S', 'p', 'Y', 'N', 'e', 'n', 'i', '4459', '3267', '4919', '3849']

SOLUTION: T, S, H, e, G, m, Q, M, D, w, C, S, p, Y, N, e, n, i, 5777, 3067, 2309, 5353, 2675, 2233, 7635, 7559, 1797, 3733, 3775, 3827, 1607, 2039, 4459, 3267, 4919, 3849

PROBLEM: ['s', 'F', '9491', 'F', '4309', '5021', '3923', '3213', '6727', 's', '9387', '7435', 'g', '7443', '5539', 'r', '3647', '6535', 'P', '1453', 'e', '323']

SOLUTION: s, F, F, s, g, r, P, e, 9491, 4309, 5021, 3923, 3213, 6727, 9387, 7435, 7443, 5539, 3647, 6535, 1453, 323

PROBLEM: ['3915', 'm', 'R', '9937', 'w', 'X', 'S', 'N', '279', '7723', 'w', 'i', '1829', 'P', '7851', 'x', 's', 'T', 'r', '3787', 'R', 'T', 'V', '9501', '4111', 'T', 'i', '1539', 'N', '755', '9291', 'S']

SOLUTION:
m, R, w, X, S, N, w, i, P, x, s, T, r, R, T, V, T, i, N, S, 3915, 9937, 279, 7723, 1829, 7851, 3787, 9501, 4111, 1539, 755, 9291