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: ['R', '4459', '7283', 'u', 'Q', 'r', 'n', 'P', 'T', 'u', '3673', 'Y', 'l', 'x', 'n', '4779', 'Y', 'm', 'B', 'p', '8399', '2977', 'h', '7849', '3879', 'B', 'N', '125', '3091', '2647', 'Q']

SOLUTION: R, u, Q, r, n, P, T, u, Y, l, x, n, Y, m, B, p, h, B, N, Q, 4459, 7283, 3673, 4779, 8399, 2977, 7849, 3879, 125, 3091, 2647

PROBLEM: ['n', '7651', 'l', '1629', 'w', '1795', '1237', '1201', '861', '9627', '1403', '5641', '5905', 'h', '9585', '9561', '6387', '9037', '1643', '4759', '4749']

SOLUTION: n, l, w, h, 7651, 1629, 1795, 1237, 1201, 861, 9627, 1403, 5641, 5905, 9585, 9561, 6387, 9037, 1643, 4759, 4749

PROBLEM: ['753', 'q', 'J', '1521']

SOLUTION:
q, J, 753, 1521