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: ['F', 'w', '7643', 'd', '7009', 'T', '7699', 'x', '1841', '3089', '9643', 'k', 'G', '9685', 'L', 'p', 'c', '9295', '1583', 'r']

SOLUTION: F, w, d, T, x, k, G, L, p, c, r, 7643, 7009, 7699, 1841, 3089, 9643, 9685, 9295, 1583

PROBLEM: ['r', 'Z', '6843', '2425', '9941', '6051', 'n', 'N', '5647', 'H']

SOLUTION:
r, Z, n, N, H, 6843, 2425, 9941, 6051, 5647