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: ['S', 'n', 'w', 'M', '3629', '1381', 'l', '7203', '1505', '5217', 'F', '5557', '3421', '7659', 'W', 'k', 't', 'K', 'W', 'q', '4039', 'b', 't', 'd', '5415', 'F', 't', 'u', 'W', 'j', '6425', 'Y']

SOLUTION: S, n, w, M, l, F, W, k, t, K, W, q, b, t, d, F, t, u, W, j, Y, 3629, 1381, 7203, 1505, 5217, 5557, 3421, 7659, 4039, 5415, 6425

PROBLEM: ['291', 't', '3207', 's', '289', 'X', 'U', 'M', '2689', '3303', '9679', 's', 'Z', 'M', '3693', 'x', '7903', 'w', 'T', 'v', '3475', '2133', 'S', '8041', '7323', '8199', 'C', '1785', '9757', 'y', 'P', '6823', '1427']

SOLUTION: t, s, X, U, M, s, Z, M, x, w, T, v, S, C, y, P, 291, 3207, 289, 2689, 3303, 9679, 3693, 7903, 3475, 2133, 8041, 7323, 8199, 1785, 9757, 6823, 1427

PROBLEM: ['3491', 'K', 'h', 'K', 'e', 'R', 'j', 'I', '7771', 'l', '3541', '6257', '2197', 'f']

SOLUTION:
K, h, K, e, R, j, I, l, f, 3491, 7771, 3541, 6257, 2197