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: ['D', 'D', 'O', '173', 'D', 'Q', '3133', '7227', 'j', '8037', 'g', '5337', 'O', '1113', 'X', '1053', 'Q', '4597', '1461', 'x', 'I', '4671', 'U', '7495', 's', '8333', '4627', '1005', 'p', '6697', 'C']

SOLUTION: D, D, O, D, Q, j, g, O, X, Q, x, I, U, s, p, C, 173, 3133, 7227, 8037, 5337, 1113, 1053, 4597, 1461, 4671, 7495, 8333, 4627, 1005, 6697

PROBLEM: ['6475', '5647', '1355', 'x', 'V', '7023', 'a', '4331', '8167', '1981', '9577', 'K', 'F', 'L', 'O', '9513', 'd', 'H', '201', 'h', '9709', '35', 'z', 'l', 'Y', '5349', 'u', 'E', '5721', '6263']

SOLUTION: x, V, a, K, F, L, O, d, H, h, z, l, Y, u, E, 6475, 5647, 1355, 7023, 4331, 8167, 1981, 9577, 9513, 201, 9709, 35, 5349, 5721, 6263

PROBLEM: ['7643', '1863', 'D', '2397', 'Y', 'A', 'd', '8747', 'D', 'O', '7995', '8713', '2757', '3379', '5481', '3891', '6383', '8981', 'N', '2679', 'O', '5435', '5619', 'g', '4561', 'm', 'T', '2791', 'Q', '2441', '1601', 'K', '5897', '7117', '4835']

SOLUTION:
D, Y, A, d, D, O, N, O, g, m, T, Q, K, 7643, 1863, 2397, 8747, 7995, 8713, 2757, 3379, 5481, 3891, 6383, 8981, 2679, 5435, 5619, 4561, 2791, 2441, 1601, 5897, 7117, 4835