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: ['9857', 'G', 'H', '1209', '835', 'O', 'P', 'D', 'F', '7977', 'b', '3487', 'N', 'Z', 'B', 'n', 'D', '5737', '6391', '9995', '9541', 'p', '3317', '3503', '7447', '6135', '8581', 'X', '567', 'r']

SOLUTION: G, H, O, P, D, F, b, N, Z, B, n, D, p, X, r, 9857, 1209, 835, 7977, 3487, 5737, 6391, 9995, 9541, 3317, 3503, 7447, 6135, 8581, 567

PROBLEM: ['I', 'O', 'h', 'I', '645', 'Y', '5739', '4827', '4875', '4339', '6481', '5413']

SOLUTION: I, O, h, I, Y, 645, 5739, 4827, 4875, 4339, 6481, 5413

PROBLEM: ['B', '917', 'e']

SOLUTION:
B, e, 917