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: ['597', '6047', 'c', 'B', 'Z', '9349', '561', '8815', '4407', 't', '4855', '7361', '5215', 'q', '9735', 'A', 'n', '4895', '7731', '4227', '9977', 'J', 'p', '6473', 'd', '9137', 'L', '745', 'C', 'T']

SOLUTION: c, B, Z, t, q, A, n, J, p, d, L, C, T, 597, 6047, 9349, 561, 8815, 4407, 4855, 7361, 5215, 9735, 4895, 7731, 4227, 9977, 6473, 9137, 745

PROBLEM: ['w', 'F', '6171', '3681', 'O', 'h', 'c', '1121', '8275', '3969', '5159', '351', '3691', 'Q', '4225', '7209', '2767', '6167', '951', 'C', 'K', 'G']

SOLUTION: w, F, O, h, c, Q, C, K, G, 6171, 3681, 1121, 8275, 3969, 5159, 351, 3691, 4225, 7209, 2767, 6167, 951

PROBLEM: ['x', '5385', 'I', '1683', 'y', 'o', 'E', 'A', 'v', 'd', '8703', 'q', '5827', '5681', 'X']

SOLUTION:
x, I, y, o, E, A, v, d, q, X, 5385, 1683, 8703, 5827, 5681