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: ['v', 'p', 'd', 'D', 'u', '8905', '4031', 'x', 'i', '2727', 'F', 'i', '4877', '6781', '433', 'c', 'q', 'X', 'G', 'u', '6155', '4239', '9599', 'c', '165', '39', '9491', 'y', 'x', '8959', 'S', '3145']

SOLUTION: v, p, d, D, u, x, i, F, i, c, q, X, G, u, c, y, x, S, 8905, 4031, 2727, 4877, 6781, 433, 6155, 4239, 9599, 165, 39, 9491, 8959, 3145

PROBLEM: ['1383', 'O', '723', 'x', '8523', 'd', '3511', '531', '7311', 'f', '5541', 'O', 'G', '2395', 'V', '9305', '9149', 'r', 'T', 'O', '3551', 'q', '6931', 'F', 'D', 'M', '7841', '9565', 'P', 'g', 'w', '7677', '9741', 'd', '8955', 'x', 'X', '9073', 'e', 'q']

SOLUTION:
O, x, d, f, O, G, V, r, T, O, q, F, D, M, P, g, w, d, x, X, e, q, 1383, 723, 8523, 3511, 531, 7311, 5541, 2395, 9305, 9149, 3551, 6931, 7841, 9565, 7677, 9741, 8955, 9073