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: ['7171', 'N', '463', 'w', 'd', 'T', '7361', 'C', 'n', 'Y', 'x', '5805', 'K', '9973', 'X', '6789', '2683', 'p', 'X', 's', '3335', 'N', 'c', '4319', '6047', 'r', '4847', '3493', '2195', 'e', 'G', 'G', 'k', 'w', '4969', 'g']

SOLUTION: N, w, d, T, C, n, Y, x, K, X, p, X, s, N, c, r, e, G, G, k, w, g, 7171, 463, 7361, 5805, 9973, 6789, 2683, 3335, 4319, 6047, 4847, 3493, 2195, 4969

PROBLEM: ['q', '8387']

SOLUTION: q, 8387

PROBLEM: ['6113', '679', 'e', 'R', 'S', '8169', 'R', 'Q', 'x', 'W', '8519', '2775', 'A', '5565', 'e', '3173', 'L']

SOLUTION:
e, R, S, R, Q, x, W, A, e, L, 6113, 679, 8169, 8519, 2775, 5565, 3173