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: ['3727', 'b', '659', 'S', 'W', 'm', 'U', '8483', 'H', '4495', '6269', '8761', 'p', 'u', 'u', '3611', 't', 'T', '785', '3587', '2139', '7165', '4671', '871', 'K', '3257', '8447', 'r', 'c', '765', '2979']

SOLUTION: b, S, W, m, U, H, p, u, u, t, T, K, r, c, 3727, 659, 8483, 4495, 6269, 8761, 3611, 785, 3587, 2139, 7165, 4671, 871, 3257, 8447, 765, 2979

PROBLEM: ['l', 'i', '4205', '2491', '3715', 'Q', 'c', 'U', 'y', 'u', 'Q', '1171', '7605', '6039', '3699', 'A', '7947', 'B', '5663', 'D', '3857', '1533', 'Q', '6759', 'C', 'S', 'u', '4597', '6829', 'H', '4711', 'N', '9707', '401', '5977', 'O', '8839', '9257', 'H', 'J']

SOLUTION: l, i, Q, c, U, y, u, Q, A, B, D, Q, C, S, u, H, N, O, H, J, 4205, 2491, 3715, 1171, 7605, 6039, 3699, 7947, 5663, 3857, 1533, 6759, 4597, 6829, 4711, 9707, 401, 5977, 8839, 9257

PROBLEM: ['9265', 'U', 'q', '6007', '1955', '421', '3679', '7363']

SOLUTION:
U, q, 9265, 6007, 1955, 421, 3679, 7363