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: ['4367', 'd', '869', '9437', '1241', '5197', '9561', '1617', '1021', '2239', '6355', 'G', 'P', '5951', 'S', 'j', '617', 'w', 'T', 'j', 'R', 'h', 'f', 'g']

SOLUTION: d, G, P, S, j, w, T, j, R, h, f, g, 4367, 869, 9437, 1241, 5197, 9561, 1617, 1021, 2239, 6355, 5951, 617

PROBLEM: ['5063', '7759', 'Y', '2415', 'p', 'R', 'S', '2313', 'i', '7155', 'z', 'R']

SOLUTION: Y, p, R, S, i, z, R, 5063, 7759, 2415, 2313, 7155

PROBLEM: ['Q', '7545', 'O', 'R', '3309', 'G', '8395', 'S', '889', 'a', 'y', '6683', 'b', '6011', 'q', '1979', 'N', 'O', 'u', '5255', 'g', 'K', '5735', 'W', '8163', 't', '2545', '2061', 'F', 'N', 'B', 'w']

SOLUTION:
Q, O, R, G, S, a, y, b, q, N, O, u, g, K, W, t, F, N, B, w, 7545, 3309, 8395, 889, 6683, 6011, 1979, 5255, 5735, 8163, 2545, 2061