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: ['E', 'm', 'o', '3729', 'd', 'r', 'V', 'X', 'J', '2701', '1567', '8189', 'Y', 'x', 'X', '7643', '8261', 'y', '7373', '9971', '3321', 'N', '5309', 'W', 'h']

SOLUTION: E, m, o, d, r, V, X, J, Y, x, X, y, N, W, h, 3729, 2701, 1567, 8189, 7643, 8261, 7373, 9971, 3321, 5309

PROBLEM: ['P', 'D', '199', '8721', '9133', 'b', 'i', '4041', 'l', '2799', '5949', '2191', '7095', '4573', 'h', '1561', 'k', 'J', 'a', 'O', '5877', '5109', 'X', '2253', '4381', 'S', '3609', '4219', 'Y', 'L', '9165', '1911', '861', '8627']

SOLUTION: P, D, b, i, l, h, k, J, a, O, X, S, Y, L, 199, 8721, 9133, 4041, 2799, 5949, 2191, 7095, 4573, 1561, 5877, 5109, 2253, 4381, 3609, 4219, 9165, 1911, 861, 8627

PROBLEM: ['8341', 'f', '7019', '3569', '4383', 'u', '9283', 'U', '7259', 'a', 'l', 'Y', 'K', '4293', '9473', 'l', 'S', '6357', 'v', '5283', 'S', 'G', 'r', 'J', '1511', 'Z', 's', '3577', 'q', '7901', '211', 'W', 'E', 'd', '1793']

SOLUTION:
f, u, U, a, l, Y, K, l, S, v, S, G, r, J, Z, s, q, W, E, d, 8341, 7019, 3569, 4383, 9283, 7259, 4293, 9473, 6357, 5283, 1511, 3577, 7901, 211, 1793