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: ['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: ['Z', '6995', 'e', '9773', 'w', '7265', '647', 'q', '2321', 's', 'W', 'M', 'b']

SOLUTION: Z, e, w, q, s, W, M, b, 6995, 9773, 7265, 647, 2321

PROBLEM: ['k', '1551', 'l', 'e', '4639', '9641', 'i', 'C', '761', 'W', '6189']

SOLUTION:
k, l, e, i, C, W, 1551, 4639, 9641, 761, 6189