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', 'r', '4449', 'Z', '5365', '1', 'O', 'S', 'A', '9963', '3923', '7051', '8531', '2529', 'E', '1319', '6455', '593', 'N', 'M', 'O']

SOLUTION: D, r, Z, O, S, A, E, N, M, O, 4449, 5365, 1, 9963, 3923, 7051, 8531, 2529, 1319, 6455, 593

PROBLEM: ['p', 'o', 'D', '4813', 's', 'O', '9157', 'Q', '7613', '3561', '705', '3237', 'q', 's', '8167', '651', '7893', 'A', '3727', 'd', '6413', '2753', '8365', 'F', '4505', '8329', '5327', '7753', '2311', '9685', '5449', '4561']

SOLUTION: p, o, D, s, O, Q, q, s, A, d, F, 4813, 9157, 7613, 3561, 705, 3237, 8167, 651, 7893, 3727, 6413, 2753, 8365, 4505, 8329, 5327, 7753, 2311, 9685, 5449, 4561

PROBLEM: ['p', 'h', '8605', 'd', '5185', 'B', 'C', '1331', 'r', '2355', '1035', '3547', '7761', '8951', 'T', '1981', 'v', 'a', 'w', 'H', 'e', '5075', 'h', 'o', '3765', '7729', 'Q', '9289', 'i', 'k', 'E', 'k', 'i', 'd', '4879', '821']

SOLUTION:
p, h, d, B, C, r, T, v, a, w, H, e, h, o, Q, i, k, E, k, i, d, 8605, 5185, 1331, 2355, 1035, 3547, 7761, 8951, 1981, 5075, 3765, 7729, 9289, 4879, 821