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', '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', 'x', 'u', 'e', 'i', '4177', 'S', 'N', '9041', 'z', 'A', '4887', '1043', 'Z', '9099', 'q', '9905', '7257', '1789', 'k', 'w', 'L', 'z', '1835', '7517', '5859', 'R']

SOLUTION: P, x, u, e, i, S, N, z, A, Z, q, k, w, L, z, R, 4177, 9041, 4887, 1043, 9099, 9905, 7257, 1789, 1835, 7517, 5859

PROBLEM: ['r', 'E', 'q', 'M']

SOLUTION:
r, E, q, M