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: ['4245', 'r', '6159', '1157', '1605', '7841', 'n', '6205', 'R', '1975', 'k', 'P', '5613', '107', '9217', '3399', '1287', 'z', 'H', '9867', 'R', 's', 'd', 'B', '7013', '5783', '9587', '95', '9703']

SOLUTION: r, n, R, k, P, z, H, R, s, d, B, 4245, 6159, 1157, 1605, 7841, 6205, 1975, 5613, 107, 9217, 3399, 1287, 9867, 7013, 5783, 9587, 95, 9703

PROBLEM: ['9679', '1537', 'V', 'g', 'a', 'e', '861', '4597', 'f', 'P', 'h', '1669', '7221', '4209', '1357', 'C', 't', '3503', '8773']

SOLUTION: V, g, a, e, f, P, h, C, t, 9679, 1537, 861, 4597, 1669, 7221, 4209, 1357, 3503, 8773

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