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: ['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: ['1139', '9117', 'k', 'P', 'C', '6059', 'e', '7641', 'C', 'K', 'S', 'H', 'Y', '915', 'T', 'K', '3209', '3763', 'Y', 'k', 's', '4259', 'n', 'd', 'o', '9707', 'G', '8923', 'A', 'L', '9749', 'c', '3875', '7853', '2689', '2553', '7025', '8019', '4603']

SOLUTION:
k, P, C, e, C, K, S, H, Y, T, K, Y, k, s, n, d, o, G, A, L, c, 1139, 9117, 6059, 7641, 915, 3209, 3763, 4259, 9707, 8923, 9749, 3875, 7853, 2689, 2553, 7025, 8019, 4603