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: ['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: ['y', '9433', '4225', '2795', '6981', '6605', '5023', 'V', '575', 's', 'A', '6977', 'g', '9027', '2383', 'X', 'L']

SOLUTION: y, V, s, A, g, X, L, 9433, 4225, 2795, 6981, 6605, 5023, 575, 6977, 9027, 2383

PROBLEM: ['B', '5373', 'G', '3707', '4539', '8739', 'S', '2309', '553', '6345', '6621', '597', 'f', '1449', 'N', '7237', '9757', 'B', '7181', '8453', 'c', '1973', 'k', '637', '5059', 'f', 'a', '897', 'H', '7101', 'V', '5187', '5341', '6727', 'V', 'D', '6567', 'O', '6853', 'i']

SOLUTION:
B, G, S, f, N, B, c, k, f, a, H, V, V, D, O, i, 5373, 3707, 4539, 8739, 2309, 553, 6345, 6621, 597, 1449, 7237, 9757, 7181, 8453, 1973, 637, 5059, 897, 7101, 5187, 5341, 6727, 6567, 6853