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', 'P', '7505', 'Z', 'u', '3193', 'R', 'q', '2199', '9271', '8289', '8941', 'i', 'I', '3967', '6461', 'F', '5747', '5349', 'E', '9019', '9865', '4581', '8423', '8649', 'Q', 'o', '8085', '7383', 'i', 'a', 'T', 'S', '2559']

SOLUTION: D, P, Z, u, R, q, i, I, F, E, Q, o, i, a, T, S, 7505, 3193, 2199, 9271, 8289, 8941, 3967, 6461, 5747, 5349, 9019, 9865, 4581, 8423, 8649, 8085, 7383, 2559

PROBLEM: ['S', '6507', '8903', '8863', 'S', '8077', '7313', '4731', '8515']

SOLUTION: S, S, 6507, 8903, 8863, 8077, 7313, 4731, 8515

PROBLEM: ['6635', 'p', 'q', '2623', '811', 'I', '1591', '7547', 'z', '4459', '9003', 'f', 'X', 'i']

SOLUTION:
p, q, I, z, f, X, i, 6635, 2623, 811, 1591, 7547, 4459, 9003