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: ['P', 'B', 'N', '8793', 'Z', 'j', '4167', 'a', '1309', 'W', '8209', '6547', '429', '2963', 'U', '6371', 'T', 'G', '9851', 'r', '2291', '8565', '7789', 'w', '4303', 'B', '9819', 'x', 'j', 'b', '3009', 'a', '3403', '7503', 'e', '4675', 'V', 'H', 'k']

SOLUTION: P, B, N, Z, j, a, W, U, T, G, r, w, B, x, j, b, a, e, V, H, k, 8793, 4167, 1309, 8209, 6547, 429, 2963, 6371, 9851, 2291, 8565, 7789, 4303, 9819, 3009, 3403, 7503, 4675

PROBLEM: ['M', 'x', '5631', '4515', '3367', 'B', 't', 'Z', '913', 'I', 'X', '591', 'Y', 'w', 'W', 'S']

SOLUTION: M, x, B, t, Z, I, X, Y, w, W, S, 5631, 4515, 3367, 913, 591

PROBLEM: ['847', '559', '8045', '5433', 'x', '6155']

SOLUTION:
x, 847, 559, 8045, 5433, 6155