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: ['y', '9479', '6903', 'P', '9005', 'o', '6645', 'L', '2215', 'G', 'T', 'O', 'e', 'h', '4251', '9841', '1179', '7095', '9727', '9815', 'R', '8771', 'e']

SOLUTION: y, P, o, L, G, T, O, e, h, R, e, 9479, 6903, 9005, 6645, 2215, 4251, 9841, 1179, 7095, 9727, 9815, 8771

PROBLEM: ['6639', '7157', 'R', '4651', '3045', 'I', 'P', 'R', '869', '3621', '1409', '9523', 'q', '1477', 'V', 'I', 'L', 'u', '3655', '4041', '491', 'f']

SOLUTION: R, I, P, R, q, V, I, L, u, f, 6639, 7157, 4651, 3045, 869, 3621, 1409, 9523, 1477, 3655, 4041, 491

PROBLEM: ['i', '5589', '7139', 'x', 'c', '7939', 'B', '393', '3131', 'X', 'G', '2097', '8041', 'S', '5927', '8751', 'o', 'd', '6691', 'M', 'X', '7943', 'm']

SOLUTION:
i, x, c, B, X, G, S, o, d, M, X, m, 5589, 7139, 7939, 393, 3131, 2097, 8041, 5927, 8751, 6691, 7943