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: ['8665', 'e', '1109', 'R', 'N', 'P', 'y', 'S', '6459', '8123', 'j', 'e', 'f', '1329', 'Y', '5399', 'q', '7371', 'd', '7787', '657', '391', '9143', '3321', 'Q', '2167', '2587', '8189', 'W', 'e']

SOLUTION: e, R, N, P, y, S, j, e, f, Y, q, d, Q, W, e, 8665, 1109, 6459, 8123, 1329, 5399, 7371, 7787, 657, 391, 9143, 3321, 2167, 2587, 8189

PROBLEM: ['3119', 'v', 'A', 'S', '3991', 'Z', '9933', 'u', 'S', 't', '9327', 'T', '8067', 'f', 'd', '5725', '763', '8901', 'F', 'T', '1969', '4253', '1001', 'J', 'H', 'b', '4449']

SOLUTION:
v, A, S, Z, u, S, t, T, f, d, F, T, J, H, b, 3119, 3991, 9933, 9327, 8067, 5725, 763, 8901, 1969, 4253, 1001, 4449