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: ['x', 'v', 'H', 'M', '1989', 's', 'n', 'g', '877', 'u', 'A', 'y', 'W', '2071', '1865', '7385', 'a', '7009', 'n', 'E', 'r', '9967', '8657', 'o', 'T', '4899', 'p', 'V', 'O', 'l', 'J']

SOLUTION: x, v, H, M, s, n, g, u, A, y, W, a, n, E, r, o, T, p, V, O, l, J, 1989, 877, 2071, 1865, 7385, 7009, 9967, 8657, 4899

PROBLEM: ['J', '9311']

SOLUTION: J, 9311

PROBLEM: ['l', 'Q', '1693', '6947', 'g', 'o', 'X']

SOLUTION:
l, Q, g, o, X, 1693, 6947