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: ['8927', '4495', 'H', '5399', 'K', 'i', '877', 'n', 'Y', '3979', '3817', 'm', 'i', 'u', 'j', 'X', '1849', '9491', '7567', 'P', 'L', 'B', '4095', '3985', '9199', '1137', '9221', '5751', 'r', 'r', '5223', '5441', '5837', '5569', '7149', 'A', 'n']

SOLUTION: H, K, i, n, Y, m, i, u, j, X, P, L, B, r, r, A, n, 8927, 4495, 5399, 877, 3979, 3817, 1849, 9491, 7567, 4095, 3985, 9199, 1137, 9221, 5751, 5223, 5441, 5837, 5569, 7149

PROBLEM: ['H', '8371', 'D', 'p', '7145', 'f', '1423', 'L', '9495', '5085', 'B', '973', 'z', '4571', '1541', '9771', '7531', 'E', 'n', '1583', 'S', '8133', '307', 'Q', 'q', 'h', '4615', 'N', 'h', '6415', '9517', 'R']

SOLUTION: H, D, p, f, L, B, z, E, n, S, Q, q, h, N, h, R, 8371, 7145, 1423, 9495, 5085, 973, 4571, 1541, 9771, 7531, 1583, 8133, 307, 4615, 6415, 9517

PROBLEM: ['2387', '5151', '8929', '2895', 'r', 'p', 'y', '1533', '4513', 'z', 'v', '1641', '959', 'N']

SOLUTION:
r, p, y, z, v, N, 2387, 5151, 8929, 2895, 1533, 4513, 1641, 959