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: ['9847', 'R', '3275', 'I', '2841', 'z', 'T', 'D', 'F', '3527', 'l', 'O', 'x', 'p', '3729', '4393', 'H', '8691', '5069', '8491', '15', '3415', 'W', 'C', '9025', '583', '8853', '9151', '2745', 'k', 'I', 'h', '1459', 'h', '4399', 'e', '879', '9135']

SOLUTION: R, I, z, T, D, F, l, O, x, p, H, W, C, k, I, h, h, e, 9847, 3275, 2841, 3527, 3729, 4393, 8691, 5069, 8491, 15, 3415, 9025, 583, 8853, 9151, 2745, 1459, 4399, 879, 9135

PROBLEM: ['G', 'A', '1165', 'O']

SOLUTION: G, A, O, 1165

PROBLEM: ['g', '3741', '8545', '7107', 'R', '7913', '7785', '7185', 'P', '6547', '9089', 'I', 'i', 'x', '9911', '1161', 'Q', '4829']

SOLUTION:
g, R, P, I, i, x, Q, 3741, 8545, 7107, 7913, 7785, 7185, 6547, 9089, 9911, 1161, 4829