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: ['R', 'w', 'o']

SOLUTION: R, w, o

PROBLEM: ['6349', '4025', 'e', '2923', '2507', 'E', 'j', '3411', '8867', '1547', '9523', '8151', '6207', 'z', 'W', 'b', '3273', '5157', 'y', '7501']

SOLUTION: e, E, j, z, W, b, y, 6349, 4025, 2923, 2507, 3411, 8867, 1547, 9523, 8151, 6207, 3273, 5157, 7501

PROBLEM: ['3773', '6141', 'x', 'a', 'D', '9107', '2171', 'u', 'U', '9745', '979', '7587', '1897', '7711', 'y', '3511', '2507', '6551', 'N', 'Y', '8001', '5041', '4839', '5509', 'P', '5303', 'E', '6525', '5145', 'O', '1507', '4285', '7291', '5781', 'l', 'p']

SOLUTION:
x, a, D, u, U, y, N, Y, P, E, O, l, p, 3773, 6141, 9107, 2171, 9745, 979, 7587, 1897, 7711, 3511, 2507, 6551, 8001, 5041, 4839, 5509, 5303, 6525, 5145, 1507, 4285, 7291, 5781