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: ['Y', 'C', '5581', 'h', '721', 'T', '9727', 'l', 'q', '2239', '2891', 'g', 'b', 'L', 'Y', '1391', '3441', '2845', '7533', 'J', 't', 'i', '4697', '9955', '8751', 'L', '7079', '3327', '7643']

SOLUTION: Y, C, h, T, l, q, g, b, L, Y, J, t, i, L, 5581, 721, 9727, 2239, 2891, 1391, 3441, 2845, 7533, 4697, 9955, 8751, 7079, 3327, 7643

PROBLEM: ['169', '2703', 'M', 'g', 'M', 'l', '5883', 'v', 'T', 'n', '7003', 'n', '3073', 'B', 'S', 'P', 'G', 'K', 'l', '4799', 'm']

SOLUTION: M, g, M, l, v, T, n, n, B, S, P, G, K, l, m, 169, 2703, 5883, 7003, 3073, 4799

PROBLEM: ['O', 'J', '6461', '2333', '1105', '5277', 'f', 'o', 'Z', 'q', '7397', 'O', 'V', '347', '8687', '1863', 't', 'c', 'O']

SOLUTION:
O, J, f, o, Z, q, O, V, t, c, O, 6461, 2333, 1105, 5277, 7397, 347, 8687, 1863