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: ['1787', 'X', 'W', '1343', 'j', '1969', 'L', '7935', 'a', 'g', 'Z', 'n', 'F', 's', 'o', 'h', '3539', '4327', 'E', 'd', 'U', '3851', 'P', '4813', '8039', 'X']

SOLUTION: X, W, j, L, a, g, Z, n, F, s, o, h, E, d, U, P, X, 1787, 1343, 1969, 7935, 3539, 4327, 3851, 4813, 8039

PROBLEM: ['8071', '2531', '6993', '3955', 'b', 'H', 'n', '8903', 'n', 'V', '2965', '2513', '1373', 'k', '1291', '2689']

SOLUTION: b, H, n, n, V, k, 8071, 2531, 6993, 3955, 8903, 2965, 2513, 1373, 1291, 2689

PROBLEM: ['N', 'B', '5295', '5041', '8961', '6903', '5251', '9369', 'R', 'Q', '5211']

SOLUTION:
N, B, R, Q, 5295, 5041, 8961, 6903, 5251, 9369, 5211