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: ['9175', 'k', '2827', 'z', '9377', 'g', 'z', 'I', 'U', 'D', '8353', 'p', 'b', 'C', '9151', '4657', 'p', 'z', '7771', 'D', 'U', 'q', 'f', 'R', 'M', '5491', '5043', '4249', 'l', '3871']

SOLUTION: k, z, g, z, I, U, D, p, b, C, p, z, D, U, q, f, R, M, l, 9175, 2827, 9377, 8353, 9151, 4657, 7771, 5491, 5043, 4249, 3871

PROBLEM: ['C', '9745', 'Q', '7799', 'e', '5643', 'p', '5233', 'W', '445', 'E', '5895', '5755', 'i', 'o', 'H', '9863', '6551', '261', '4513', 's', '5311', '8877', 'w', 'w', '827', 'u', '8005', 'I', '9917', '5553', 'B', '7953', '2181']

SOLUTION: C, Q, e, p, W, E, i, o, H, s, w, w, u, I, B, 9745, 7799, 5643, 5233, 445, 5895, 5755, 9863, 6551, 261, 4513, 5311, 8877, 827, 8005, 9917, 5553, 7953, 2181

PROBLEM: ['8999', '5909', 'd', '7107', '8447', '4373', '5471', '1309', '1375', '9507', 'B', '5195', '1539', 'B', 'u', '29', 'O', 'Y', '499', 'A', '9137', 'X', '9547', 'J', 'G', 'Q', 'K', '9865', '6335', '3805', '2567', 'F', '7875', '2717', '8861', '8975', 'N', '7087', '2765']

SOLUTION:
d, B, B, u, O, Y, A, X, J, G, Q, K, F, N, 8999, 5909, 7107, 8447, 4373, 5471, 1309, 1375, 9507, 5195, 1539, 29, 499, 9137, 9547, 9865, 6335, 3805, 2567, 7875, 2717, 8861, 8975, 7087, 2765