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: ['3497', 'P', 'B', 'L', '2433', 'u', 'y', 'M', 'd', '7085', '8935', '7701', '3829', 'd', 'i', 'd', '4091', 'X', 'Q', 'd', '4139']

SOLUTION: P, B, L, u, y, M, d, d, i, d, X, Q, d, 3497, 2433, 7085, 8935, 7701, 3829, 4091, 4139

PROBLEM: ['h', '2041', '7621', 'f', 'S', '665', 'x', 'g', 'E', '4371', '6589', 'l', 'C', '789', 'm', '2215', '1017', '3089', 'X', '8773']

SOLUTION: h, f, S, x, g, E, l, C, m, X, 2041, 7621, 665, 4371, 6589, 789, 2215, 1017, 3089, 8773

PROBLEM: ['y', '8211', 'Y', 'R', '8475', 's', 'R', '9209', 'h', '7537', 'a', '4071', 'x']

SOLUTION:
y, Y, R, s, R, h, a, x, 8211, 8475, 9209, 7537, 4071