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: ['D', 'D', 'O', '173', 'D', 'Q', '3133', '7227', 'j', '8037', 'g', '5337', 'O', '1113', 'X', '1053', 'Q', '4597', '1461', 'x', 'I', '4671', 'U', '7495', 's', '8333', '4627', '1005', 'p', '6697', 'C']

SOLUTION: D, D, O, D, Q, j, g, O, X, Q, x, I, U, s, p, C, 173, 3133, 7227, 8037, 5337, 1113, 1053, 4597, 1461, 4671, 7495, 8333, 4627, 1005, 6697

PROBLEM: ['n', '4645', 't', 'A', '5319', 'e', '9771', '9493', '3891', '3385', 'Y', '523', 'L', 'k', '4211', 'b', '2273', 'A', 'v', 'D', '6079', '823', 'c', '989', '3477', 'c', '8799', '7277', 'y', 'p', '2709']

SOLUTION: n, t, A, e, Y, L, k, b, A, v, D, c, c, y, p, 4645, 5319, 9771, 9493, 3891, 3385, 523, 4211, 2273, 6079, 823, 989, 3477, 8799, 7277, 2709

PROBLEM: ['s', '3587', '71', '9669', '7485', 'i', 'c', '4575', 'W', '9329', 'q']

SOLUTION:
s, i, c, W, q, 3587, 71, 9669, 7485, 4575, 9329