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: ['8221', 'K', '1765', 'M', 'e', '6605', 'V', '1145', '2631', 'T', '3247', 'U', '7467', '4829', '7459', 'D', 'C', 'B', '6607', '533', 'p', '6123', '2115', '763', '3957', 'k', 'h', '4709', 'p', 'K', 'z', 'U', '8891', '8585', 'x', '4605', 'q']

SOLUTION: K, M, e, V, T, U, D, C, B, p, k, h, p, K, z, U, x, q, 8221, 1765, 6605, 1145, 2631, 3247, 7467, 4829, 7459, 6607, 533, 6123, 2115, 763, 3957, 4709, 8891, 8585, 4605

PROBLEM: ['8031', 'X', 'j', 'm', 'x', 'O', 'Y', 'p', 'z', 'U', '5125', 'J', '9977', '8977', '3787', '5241', 'z', '8985', '5807', '5063', '1133', '8497', 'n', 'C', 'j', 'X', '3299', 'Y', 'X', 't', '6197', 'a', 'f', 'S']

SOLUTION: X, j, m, x, O, Y, p, z, U, J, z, n, C, j, X, Y, X, t, a, f, S, 8031, 5125, 9977, 8977, 3787, 5241, 8985, 5807, 5063, 1133, 8497, 3299, 6197

PROBLEM: ['9835', 'i', 'N', 'w', '8261']

SOLUTION:
i, N, w, 9835, 8261