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: ['k', '507', 'I', '6705', '9645', 'H', '3897']

SOLUTION: k, I, H, 507, 6705, 9645, 3897

PROBLEM: ['3523', 'W', '5715', '7517', 'q', '6405', '365', 'j', 'D', '983', 'P', 'D', 'X', 'A', 'v', 'a', '5091', 't', '7277', 'E', 'i', '2059', '4403', '1345', 'u', 'Y', '4341', '61', 'I', 'O']

SOLUTION: W, q, j, D, P, D, X, A, v, a, t, E, i, u, Y, I, O, 3523, 5715, 7517, 6405, 365, 983, 5091, 7277, 2059, 4403, 1345, 4341, 61

PROBLEM: ['M', 'Y', 'p', 'J', '4021']

SOLUTION:
M, Y, p, J, 4021