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: ['R', 'w', 'o']

SOLUTION: R, w, o

PROBLEM: ['7861', 't', 't', 'd', '1117', 'i', 'U', 'f', '9243', '4317', '9203', 'E', 'X', '9449', 'a', 'J', 'K', 'j', '339', 'a', 't', '9855', 'o', 'E', '5017', '699', '2817', 'p']

SOLUTION:
t, t, d, i, U, f, E, X, a, J, K, j, a, t, o, E, p, 7861, 1117, 9243, 4317, 9203, 9449, 339, 9855, 5017, 699, 2817