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: ['N', 'M', '3951', '6031', '2277', 'M', 'Z', '1755', 'g', '255', 'G', '3423', 'W', 'Q', '393', 'M', '5045', 'c', 'J', '9001', '8103']

SOLUTION: N, M, M, Z, g, G, W, Q, M, c, J, 3951, 6031, 2277, 1755, 255, 3423, 393, 5045, 9001, 8103

PROBLEM: ['339', 'P', '4847', '3561', 'k', 'c', 'L', '4091', '9207', 'H', '9483', 'F', 'u', 'l', 'Y', 'P', 'w', '4465', 'Z', 'U', 'i']

SOLUTION: P, k, c, L, H, F, u, l, Y, P, w, Z, U, i, 339, 4847, 3561, 4091, 9207, 9483, 4465

PROBLEM: ['J', '9311']

SOLUTION:
J, 9311