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: ['8101', 'g', 'a', 'S', 'M', 'M', '9499', '4027', 'c', '6661', '783', 'O', '4471', '6575', '6045', 'i', '1561', '5103', 'l', '4653', '3']

SOLUTION: g, a, S, M, M, c, O, i, l, 8101, 9499, 4027, 6661, 783, 4471, 6575, 6045, 1561, 5103, 4653, 3

PROBLEM: ['6777', '9975', 'j', 'Y']

SOLUTION: j, Y, 6777, 9975

PROBLEM: ['T', 'j', 'X', '6033', 'S', 'J', 'K', 'h', 'R']

SOLUTION:
T, j, X, S, J, K, h, R, 6033