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: ['C', 'x', '4187', 'L', 'N', 'h', 'n', '5057', 'J', 'U', 'f', 'C', 'V', '8055', '5863', '759', '5985', 'C', 'A', '6269', 'N', '5869', '8183', '1361', '3095', '865', 'r', '5061', 'C', 'y', 'n', '5695', 'X', 'L', '5001', '1787', '2173', 'U', '2953', 'i']

SOLUTION: C, x, L, N, h, n, J, U, f, C, V, C, A, N, r, C, y, n, X, L, U, i, 4187, 5057, 8055, 5863, 759, 5985, 6269, 5869, 8183, 1361, 3095, 865, 5061, 5695, 5001, 1787, 2173, 2953

PROBLEM: ['2797', '8449', '8105', '6175', 'x']

SOLUTION: x, 2797, 8449, 8105, 6175

PROBLEM: ['L', '6293', '6861', 'X', '2491', '7163', '8663', '2933', '8445', 'i', 'q', '227', 'T', 'J', '3485', '1275', 'h', 'm', 'U', '9859', 'q', '2517', '2433', 'V', 'a']

SOLUTION:
L, X, i, q, T, J, h, m, U, q, V, a, 6293, 6861, 2491, 7163, 8663, 2933, 8445, 227, 3485, 1275, 9859, 2517, 2433