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: ['L', 'w', 'n']

SOLUTION: L, w, n

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: ['B', 'A', '681', 'a', 'Y', '1391', 'e', 'f', '7549', 'r', '77', 'K', 'a', 'S', '2255', '2907', 'w', 'd', '3963', '7865', '2137', '5871', 'E', 'M', '8593', 'q', 'y', 'T', '6405', '6025', '4321', 'D', 'e', 'D', 'E', '3561', 'q', 'K']

SOLUTION:
B, A, a, Y, e, f, r, K, a, S, w, d, E, M, q, y, T, D, e, D, E, q, K, 681, 1391, 7549, 77, 2255, 2907, 3963, 7865, 2137, 5871, 8593, 6405, 6025, 4321, 3561