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: ['5127', '2471', 'W', 'i', '5941', 'H', 'V', 'M', 'V', '2581', '8199', '5679', 't', '7669', 'E', 'e', 'P', '3317', '8789', 'd', 'f']

SOLUTION: W, i, H, V, M, V, t, E, e, P, d, f, 5127, 2471, 5941, 2581, 8199, 5679, 7669, 3317, 8789

PROBLEM: ['1363', '4357', '39', 'g', 'j', 'm', 'w', 'y', '8981', '6481', 'p', 'b', '8457', '7229', 'g', '1803', 'i', '9219', 'b', 'm', '661', '3333', '6127', 'T', '1099', 'P', '2173', '6471', '6119', '5409', 'I', '2733', 'm', '7543', 'K']

SOLUTION: g, j, m, w, y, p, b, g, i, b, m, T, P, I, m, K, 1363, 4357, 39, 8981, 6481, 8457, 7229, 1803, 9219, 661, 3333, 6127, 1099, 2173, 6471, 6119, 5409, 2733, 7543

PROBLEM: ['8981', '5155', '3005', 'e', '9081', 'Z', '7579', 'A', 'O', 'Q']

SOLUTION:
e, Z, A, O, Q, 8981, 5155, 3005, 9081, 7579