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: ['g', 'g', '9271', 'D', '9667', 'x', '117', 'E', '4013', 'D', 'M', 'Y', '3887', '5931', '273', '5333', 'Q', '1303', '4517']

SOLUTION: g, g, D, x, E, D, M, Y, Q, 9271, 9667, 117, 4013, 3887, 5931, 273, 5333, 1303, 4517

PROBLEM: ['b', 'A', '6401', 'N', 't', 'V', 's', 'i', '6143', 'N', '6377', 'n', 'm', '5725', '8819', '4769', '3817', 'Q', '7535', '7981', '6939', 'q', '3545', '453', '8389', '2025', 'q', 'U']

SOLUTION: b, A, N, t, V, s, i, N, n, m, Q, q, q, U, 6401, 6143, 6377, 5725, 8819, 4769, 3817, 7535, 7981, 6939, 3545, 453, 8389, 2025

PROBLEM: ['5017', 'G', 'i']

SOLUTION:
G, i, 5017