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: ['F', 'E', 'p', 'd', '8159', 'a', '6625', '8905', '5515', 'P', 'W', '6557', '9587', '5477', 'S', 'z', '9427']

SOLUTION: F, E, p, d, a, P, W, S, z, 8159, 6625, 8905, 5515, 6557, 9587, 5477, 9427

PROBLEM: ['9297', '4887', '3421', '2815', '5975', '1767', '2201', 'z', 'Z', '6543', '6865', '709', '6907', 'B', 'Q', 'h', '9195', 'z', 'g', 'y', '4243', '839', 'R', 'I']

SOLUTION: z, Z, B, Q, h, z, g, y, R, I, 9297, 4887, 3421, 2815, 5975, 1767, 2201, 6543, 6865, 709, 6907, 9195, 4243, 839

PROBLEM: ['a', 'p', '729', 'U', '5965', 'k', 'v', '403', '5697', '2215', 'V', 'W', '6323', '7273', 'z', '4511', '2323', 'i', 'f', '1645', 'T', '8711', 'k', 'r', '3667', '5871', '6749', 'O', 's', '2249', '7421', '179', 'u', 'k', 'Y', 'l', 'l']

SOLUTION:
a, p, U, k, v, V, W, z, i, f, T, k, r, O, s, u, k, Y, l, l, 729, 5965, 403, 5697, 2215, 6323, 7273, 4511, 2323, 1645, 8711, 3667, 5871, 6749, 2249, 7421, 179