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: ['8983', '3387', 'A', '7837', '5923', 'f', 'G', '2929', '4447', '8045', 'h', '1391', '8899', 'P', 'K', '2027', '1473', '3891', '1059', 'o', 'f', 'k', '6831', 'o', 'M']

SOLUTION: A, f, G, h, P, K, o, f, k, o, M, 8983, 3387, 7837, 5923, 2929, 4447, 8045, 1391, 8899, 2027, 1473, 3891, 1059, 6831

PROBLEM: ['2371', '2561', 'W', '9375', 'M', '1357', 'L', '3139', '1063', '639', '9591', '7245']

SOLUTION:
W, M, L, 2371, 2561, 9375, 1357, 3139, 1063, 639, 9591, 7245