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: ['K', '4733', '749', '693', 'e', 'V', '4975', 'q', 'M', 'U', 'C', '4929', '5541', '9899', 'g', 'p', 'q', 'h', 'A', 'a', 'J', '897', 'N', 'z', '8939', '6949', 'n', 'i', '7161', 'L', 'C', 'c', 'S', 'y', 'n', '543', 'd']

SOLUTION: K, e, V, q, M, U, C, g, p, q, h, A, a, J, N, z, n, i, L, C, c, S, y, n, d, 4733, 749, 693, 4975, 4929, 5541, 9899, 897, 8939, 6949, 7161, 543

PROBLEM: ['5757', 'R', '1009', '6621', '4491', '9173', 'b', 'P', '8019', 'S', '2423', '6769', 'G', '7421', 'L', '9215', '4473', '8791', '8867', '5475', 'u', 'X', 'T', 'n', 'F', '4049', '389', 'c', '869', 'C', '3677']

SOLUTION:
R, b, P, S, G, L, u, X, T, n, F, c, C, 5757, 1009, 6621, 4491, 9173, 8019, 2423, 6769, 7421, 9215, 4473, 8791, 8867, 5475, 4049, 389, 869, 3677