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: ['9401', '9845', 'V', 'N', '2847', 'z', '91', '1601', 'v', 'Z', '657', 'D', '6597', 'M', '3331', '7517', 'k', '5655', '733', '9147', '7617', '4057', 'O', 'K', 'I', '501', '5309', '3703', '5775', '289']

SOLUTION: V, N, z, v, Z, D, M, k, O, K, I, 9401, 9845, 2847, 91, 1601, 657, 6597, 3331, 7517, 5655, 733, 9147, 7617, 4057, 501, 5309, 3703, 5775, 289

PROBLEM: ['F', 'w', '7643', 'd', '7009', 'T', '7699', 'x', '1841', '3089', '9643', 'k', 'G', '9685', 'L', 'p', 'c', '9295', '1583', 'r']

SOLUTION: F, w, d, T, x, k, G, L, p, c, r, 7643, 7009, 7699, 1841, 3089, 9643, 9685, 9295, 1583

PROBLEM: ['5171', 'B', 'b', '5943', 'p', '8543', '3229', 'K', 'N', '5209', '7883', 'c', 'b', 'e', 'N', '41', 'v', '3965', '5227']

SOLUTION:
B, b, p, K, N, c, b, e, N, v, 5171, 5943, 8543, 3229, 5209, 7883, 41, 3965, 5227