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: ['S', '6507', '8903', '8863', 'S', '8077', '7313', '4731', '8515']

SOLUTION: S, S, 6507, 8903, 8863, 8077, 7313, 4731, 8515

PROBLEM: ['h', '997', 'A', 'p', 'y', 'B', '4121', '2701', 'i']

SOLUTION: h, A, p, y, B, i, 997, 4121, 2701

PROBLEM: ['6685', '3659', '5881', '9239', 'a', '1909', 'I', '2963', '7507', 'p', 'a', 'C', '4675', '3157', 's', 'I', '1663', 'V', 'Z', 'Q', 'p', 'y', '1471']

SOLUTION:
a, I, p, a, C, s, I, V, Z, Q, p, y, 6685, 3659, 5881, 9239, 1909, 2963, 7507, 4675, 3157, 1663, 1471