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: ['b', 'd', 'f']

SOLUTION: b, d, f

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: ['5471', 'i', '221', 'i', '559', 'J', '4153', '4775', '791', '7019', 'p', '2681', 'a', 'J', 'a', 'g', '8869', '611', 'r', '9125', 'v', '2789', 'p', 'w', '1691', '9', '4291', '1407', '5779']

SOLUTION:
i, i, J, p, a, J, a, g, r, v, p, w, 5471, 221, 559, 4153, 4775, 791, 7019, 2681, 8869, 611, 9125, 2789, 1691, 9, 4291, 1407, 5779