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: ['n', '5329', '7635', 'D', 'D', 'Y', '3097', 'Q', 'S', 'e', '4525', '5485', '6717', 'q', '7315', 'X', '8971', 'd', 'M', '407', '4931', 'o', '139']

SOLUTION: n, D, D, Y, Q, S, e, q, X, d, M, o, 5329, 7635, 3097, 4525, 5485, 6717, 7315, 8971, 407, 4931, 139

PROBLEM: ['4259', '4973', '181', '5487', '825', 'E', '1663', '9783', 'U', 'a', 'W', '3997', 'M', 'x', 'M', 'h', '4489', '9773', 'f', '3967', '8857', 'Z', 'O', 'O', 'Q', 'K', '8201', 'U']

SOLUTION: E, U, a, W, M, x, M, h, f, Z, O, O, Q, K, U, 4259, 4973, 181, 5487, 825, 1663, 9783, 3997, 4489, 9773, 3967, 8857, 8201

PROBLEM: ['I', '2975', '413', '4083', '8705', '4017', '2507', 'E', '3735', 'P']

SOLUTION:
I, E, P, 2975, 413, 4083, 8705, 4017, 2507, 3735