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: ['405', '2287', '9671', '5581', 'S', 'W', 'a', 'I', '5965', '5165', '6109', 'C', 'O', '8787', '141', '8211', 'm', 'f', 'g', 'Z', '9305', 'D', 'N', '193', 'D', '419', '7545']

SOLUTION: S, W, a, I, C, O, m, f, g, Z, D, N, D, 405, 2287, 9671, 5581, 5965, 5165, 6109, 8787, 141, 8211, 9305, 193, 419, 7545

PROBLEM: ['a', '8653', '8525', 'i', '9635', '7899', 'V', 'x', '4575', 'C', 'U', 'N', '6737', '8637', '657', 'k', '5829', 'M', 'u', '8475', '1431', 'c', 'B', '4671', '2397', '6809', 'y', 'G', 'A', '6747', 'D', 'Q', '5681', 't']

SOLUTION: a, i, V, x, C, U, N, k, M, u, c, B, y, G, A, D, Q, t, 8653, 8525, 9635, 7899, 4575, 6737, 8637, 657, 5829, 8475, 1431, 4671, 2397, 6809, 6747, 5681

PROBLEM: ['K', '8133', '9303', '7611', '8015', 'I', '4105', '5955']

SOLUTION:
K, I, 8133, 9303, 7611, 8015, 4105, 5955