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: ['m', '3101', '8627', 'p', '5923', 'S', 'Z', '37', '5807', 'N', 'U', '4511', '1065', '173', 'J', '1343', 't', '2081', 'd', '6249', '527', 'z', 'i', '5497', '2309', 'N', 'g', 'U', '6609', 'L', '7373', '6897', '1361', '8413', 'b', 'k', 'Y']

SOLUTION: m, p, S, Z, N, U, J, t, d, z, i, N, g, U, L, b, k, Y, 3101, 8627, 5923, 37, 5807, 4511, 1065, 173, 1343, 2081, 6249, 527, 5497, 2309, 6609, 7373, 6897, 1361, 8413

PROBLEM: ['W', 'K', '3915', '1635', 'T', '7043', 'Q', '8477', '417', '6741', '7495', '2617', '7333', '7111', 'i', 'r', '4311', 'V', 'B', '2073', 'C', 'R', 'U', 'A', '569', 'B', 'A', 's', '2875', '2147', '2277', 'e', 'I', '6023', '3305', '2133']

SOLUTION: W, K, T, Q, i, r, V, B, C, R, U, A, B, A, s, e, I, 3915, 1635, 7043, 8477, 417, 6741, 7495, 2617, 7333, 7111, 4311, 2073, 569, 2875, 2147, 2277, 6023, 3305, 2133

PROBLEM: ['9575', '2805', '6025', '3961', '51', '3247', 'R', 'B', '2707', 'n', 'D', '1013', 'p', '6151', 'p', '9689', 'g']

SOLUTION:
R, B, n, D, p, p, g, 9575, 2805, 6025, 3961, 51, 3247, 2707, 1013, 6151, 9689