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: ['y', 'u', '2937', 'N', 'v', 'O', '7611']

SOLUTION: y, u, N, v, O, 2937, 7611

PROBLEM: ['7267', '7813', '4561', '5161', 'p', '9959', 'i', '6617', 'M', 'S', 'F', '6957', 'G', '421', 'F', '8003', 'l', '7499', 'O', '7439', '8123', 'Y', '8715', 'u', 'c', '4947', '4547', '4759']

SOLUTION:
p, i, M, S, F, G, F, l, O, Y, u, c, 7267, 7813, 4561, 5161, 9959, 6617, 6957, 421, 8003, 7499, 7439, 8123, 8715, 4947, 4547, 4759