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', 'D', '199', '8721', '9133', 'b', 'i', '4041', 'l', '2799', '5949', '2191', '7095', '4573', 'h', '1561', 'k', 'J', 'a', 'O', '5877', '5109', 'X', '2253', '4381', 'S', '3609', '4219', 'Y', 'L', '9165', '1911', '861', '8627']

SOLUTION: P, D, b, i, l, h, k, J, a, O, X, S, Y, L, 199, 8721, 9133, 4041, 2799, 5949, 2191, 7095, 4573, 1561, 5877, 5109, 2253, 4381, 3609, 4219, 9165, 1911, 861, 8627

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: ['9195', 'Q', 'N', '5385', '7347', 'x', 'i', 'c', '2505', '8927', '7649', 'r', 'D', 'h', 'y', '215', 'B', '2971', 'X', '1491', '1175', 'b']

SOLUTION:
Q, N, x, i, c, r, D, h, y, B, X, b, 9195, 5385, 7347, 2505, 8927, 7649, 215, 2971, 1491, 1175