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: ['6297', 'S', '7737', 'b', '9907', 'Q', 'Q', 'H', 'F', '7837', '9685', 'H', '1581', '3547', 'b', 'q', 'v']

SOLUTION: S, b, Q, Q, H, F, H, b, q, v, 6297, 7737, 9907, 7837, 9685, 1581, 3547

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: ['3481', 'r', '8493', 'r', '7', 'y', '2601', 'Y', '165', 'C', 'U', '5663', '1885', 'I', '7469', 'w', '3927', 'R', 'j', 'E', '381', 'v', 'U', '7841', '263']

SOLUTION:
r, r, y, Y, C, U, I, w, R, j, E, v, U, 3481, 8493, 7, 2601, 165, 5663, 1885, 7469, 3927, 381, 7841, 263