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: ['J', '3119', 'Q', '1463', 'I', '4493', 'Z', '2583', '1629', 'o', 'N', 'r', 'C', 'S', '6551', 'F', 'G', 'X', 'M', 'n', 'l', '2151', 'B', '5627', '8701', '9207', 's', '9867', 'L', '7129', '5139', '7195', '871']

SOLUTION: J, Q, I, Z, o, N, r, C, S, F, G, X, M, n, l, B, s, L, 3119, 1463, 4493, 2583, 1629, 6551, 2151, 5627, 8701, 9207, 9867, 7129, 5139, 7195, 871

PROBLEM: ['x', 'f', 'L', '3955', '2651', 'q', '7975', 'I', '5809', '5131', '5109', 'p', 'J', '6093', '9679', '3367', '7145']

SOLUTION: x, f, L, q, I, p, J, 3955, 2651, 7975, 5809, 5131, 5109, 6093, 9679, 3367, 7145

PROBLEM: ['1897', '5611', '1367', 'a', 'Z', '5927', 'M', 'U', 'L', 'V', '877', 'v', '4709']

SOLUTION:
a, Z, M, U, L, V, v, 1897, 5611, 1367, 5927, 877, 4709