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: ['1787', 'X', 'W', '1343', 'j', '1969', 'L', '7935', 'a', 'g', 'Z', 'n', 'F', 's', 'o', 'h', '3539', '4327', 'E', 'd', 'U', '3851', 'P', '4813', '8039', 'X']

SOLUTION: X, W, j, L, a, g, Z, n, F, s, o, h, E, d, U, P, X, 1787, 1343, 1969, 7935, 3539, 4327, 3851, 4813, 8039

PROBLEM: ['v', '4855', 'U', '1143', '299', '7257', 'U', '7749', 'G', 'Y', 'f', 't', '8953', '9719', 'T', 'M', 'w', 'S', '5935', '9303', '4971', '887', 'p', '4953', '5109', 't', '7827', '7537', '1299']

SOLUTION: v, U, U, G, Y, f, t, T, M, w, S, p, t, 4855, 1143, 299, 7257, 7749, 8953, 9719, 5935, 9303, 4971, 887, 4953, 5109, 7827, 7537, 1299

PROBLEM: ['7773', '6845', '5937', '1273', 'Q', '9757', 'J', 'V', '9743', 'P', 'B', '527', 'T', 'u', 'y', 'D', '1905']

SOLUTION:
Q, J, V, P, B, T, u, y, D, 7773, 6845, 5937, 1273, 9757, 9743, 527, 1905