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: ['D', '8577', '7971', 'x', 'm', '8323', 'T', '5257', '3341', '3963', '7895', '1465', '1987', '9909', 'o', '245']

SOLUTION: D, x, m, T, o, 8577, 7971, 8323, 5257, 3341, 3963, 7895, 1465, 1987, 9909, 245

PROBLEM: ['t', '5675', 'r', '8935', '9319', 's', 'e', '4559', '3367', 'q', 'p', 'z', '2521', '9715', '2171', 'l', '5045', 'j', '5027', '95', 'Q', 'g', 'B', '6599', 'p', 'g', 'Q', 'm']

SOLUTION: t, r, s, e, q, p, z, l, j, Q, g, B, p, g, Q, m, 5675, 8935, 9319, 4559, 3367, 2521, 9715, 2171, 5045, 5027, 95, 6599

PROBLEM: ['9269', 'm', 'm', '6767', '3047', '311', '7623', 'i', 'P', '5141', 't', '9779', 'y', '8141', '8065', 'p', 'a', '7491', 'R', 'k', '6977', '9291', 'V', 'O']

SOLUTION:
m, m, i, P, t, y, p, a, R, k, V, O, 9269, 6767, 3047, 311, 7623, 5141, 9779, 8141, 8065, 7491, 6977, 9291