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: ['q', 'y', 'h', '6797', 'm', 'p', '3303', '4349', '9779', '6367', '3107', 'R', 'C', '6105', '6165', '6611', 'O', '6697', 'l', 'L', 'Q', '8817', 'x']

SOLUTION: q, y, h, m, p, R, C, O, l, L, Q, x, 6797, 3303, 4349, 9779, 6367, 3107, 6105, 6165, 6611, 6697, 8817

PROBLEM: ['f', 'w', 'I', 'h', '9571', 'F', '4207', '1901', '2605', 'H', 'R', 'm', '6911', 'B', '1955', 'r', '4121', 'y', 'N', 'p', 'p', 'W', '9151', 'G', 'c', 'r', 'T', '4221', 'D', '2151', '5489', '4879', 'v', '3223', '75', 'X']

SOLUTION: f, w, I, h, F, H, R, m, B, r, y, N, p, p, W, G, c, r, T, D, v, X, 9571, 4207, 1901, 2605, 6911, 1955, 4121, 9151, 4221, 2151, 5489, 4879, 3223, 75

PROBLEM: ['U', 'o', '3893', '231', 'z', '9401', '7361', '9307', '5843', '4599', 'R', '4687', '5615', 'e', '2899', '7101', 'A', 'b', '2183', '9673']

SOLUTION:
U, o, z, R, e, A, b, 3893, 231, 9401, 7361, 9307, 5843, 4599, 4687, 5615, 2899, 7101, 2183, 9673