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: ['B', 'T', 'y', '4863', '715', 'O', 'i', 'n', '4171', '5175', 's', '4793', '9007', '9755', 'o', 'z', 'S', 'J', 'b', 'q', '5045', '7965']

SOLUTION: B, T, y, O, i, n, s, o, z, S, J, b, q, 4863, 715, 4171, 5175, 4793, 9007, 9755, 5045, 7965

PROBLEM: ['J', 'X', '4569', '8419', 'H', '7977', 'x', 'a', 'Q', '3953', '2337', 'u', '1317', 'i', 'j', '6933', '1053', '8345', '9831', 'a', '8859', '759', 'p', 'A', '7163']

SOLUTION: J, X, H, x, a, Q, u, i, j, a, p, A, 4569, 8419, 7977, 3953, 2337, 1317, 6933, 1053, 8345, 9831, 8859, 759, 7163

PROBLEM: ['W', 'g', 'x', 'c', '7879', '9451', 'X', '7297', 'Q', 'Z', '8723', '2233', 'V', 'K', '6401', 'k', 'f', '1355', 'j', 'Q', 'H', 'T', 'Y', 'r', 'Z', 'q', '3659', '9867', '2445', 'f']

SOLUTION:
W, g, x, c, X, Q, Z, V, K, k, f, j, Q, H, T, Y, r, Z, q, f, 7879, 9451, 7297, 8723, 2233, 6401, 1355, 3659, 9867, 2445