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: ['F', 'E', 'p', 'd', '8159', 'a', '6625', '8905', '5515', 'P', 'W', '6557', '9587', '5477', 'S', 'z', '9427']

SOLUTION: F, E, p, d, a, P, W, S, z, 8159, 6625, 8905, 5515, 6557, 9587, 5477, 9427

PROBLEM: ['S', 'n', 'w', 'M', '3629', '1381', 'l', '7203', '1505', '5217', 'F', '5557', '3421', '7659', 'W', 'k', 't', 'K', 'W', 'q', '4039', 'b', 't', 'd', '5415', 'F', 't', 'u', 'W', 'j', '6425', 'Y']

SOLUTION: S, n, w, M, l, F, W, k, t, K, W, q, b, t, d, F, t, u, W, j, Y, 3629, 1381, 7203, 1505, 5217, 5557, 3421, 7659, 4039, 5415, 6425

PROBLEM: ['Z', '8715', 'G', '115', 'b', 'z', '3395']

SOLUTION:
Z, G, b, z, 8715, 115, 3395