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: ['P', 'x', 'u', 'e', 'i', '4177', 'S', 'N', '9041', 'z', 'A', '4887', '1043', 'Z', '9099', 'q', '9905', '7257', '1789', 'k', 'w', 'L', 'z', '1835', '7517', '5859', 'R']

SOLUTION: P, x, u, e, i, S, N, z, A, Z, q, k, w, L, z, R, 4177, 9041, 4887, 1043, 9099, 9905, 7257, 1789, 1835, 7517, 5859

PROBLEM: ['7709', 'a', 'P', 'G', '5441', '2055', '1573', '6041', 'J', 'N']

SOLUTION: a, P, G, J, N, 7709, 5441, 2055, 1573, 6041

PROBLEM: ['h', 'S', '1519', 'G', 'l', 'O', 'n', '7095', 'K', '2903', '5235', 'b', 'q', 'd', 'd', 'D']

SOLUTION:
h, S, G, l, O, n, K, b, q, d, d, D, 1519, 7095, 2903, 5235