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: ['8549', 'b', 'k', '9771', 'v', 'Q', 'p', '1247', 'W', '3439', '5667', '4653', 'y', '4473', '7865', '1397', '2493', '1669', '5333', '7027', '5617', '5935', '6787', '4141', '4151']

SOLUTION: b, k, v, Q, p, W, y, 8549, 9771, 1247, 3439, 5667, 4653, 4473, 7865, 1397, 2493, 1669, 5333, 7027, 5617, 5935, 6787, 4141, 4151

PROBLEM: ['S', '8365', 'C', '9185', 'd', 'Z', 'R', '2537', 'r', '5021', '7251', '8567', '4061', '3311', '6439', '5359', 'x', '9931', '87', '2169', '9021', '195', 'N', 'o', 'K', '747', 'h', '6187', 'x', 'n', 'p', '1219', 'P', '4661', 'c', 'm', '5775', 'u', '5929', 'G']

SOLUTION: S, C, d, Z, R, r, x, N, o, K, h, x, n, p, P, c, m, u, G, 8365, 9185, 2537, 5021, 7251, 8567, 4061, 3311, 6439, 5359, 9931, 87, 2169, 9021, 195, 747, 6187, 1219, 4661, 5775, 5929

PROBLEM: ['8171', 'q', '6447', '1931', 'k', 'D', 'L', 'Y', '1125', '4083', 'N', '2187', '8467', '6375', '3037', 'd', 'd', 'K', '375', 'u', '6351', '3231', '4865', '9809', '1359', '9003', '7411', 'I', '9587', '2939', '3291']

SOLUTION:
q, k, D, L, Y, N, d, d, K, u, I, 8171, 6447, 1931, 1125, 4083, 2187, 8467, 6375, 3037, 375, 6351, 3231, 4865, 9809, 1359, 9003, 7411, 9587, 2939, 3291