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: ['1243', '6133', '7145', '4061', '4919', 'y', '2955', '2707', 'y', 'w', 'P', 'c', '6387', '5119', 'c', 'B', 'N', '4849', '7999', '4571', 'U', 'M', 'S', '5981', 'n']

SOLUTION: y, y, w, P, c, c, B, N, U, M, S, n, 1243, 6133, 7145, 4061, 4919, 2955, 2707, 6387, 5119, 4849, 7999, 4571, 5981

PROBLEM: ['3805', 'd', 'V', 'u', '1395', '7337', '97', '6289', '5041', '8097', 'x', 'w', '7241', '2791', 'P', 'o', '7587', '6955', '9121', '599']

SOLUTION: d, V, u, x, w, P, o, 3805, 1395, 7337, 97, 6289, 5041, 8097, 7241, 2791, 7587, 6955, 9121, 599

PROBLEM: ['271', '2101', '9923', 'M', 'e', '1719', 'P', 'h', '5551', '4207', 'D', '8239', 's', '1921', 'y', '3273', 'T', 't', 'c', 'b', 's', 'j', 'o', 'Z', '5929', '5663', 'Y', 'Y', 'N', 'c', 'l', 'u', 'Q', 'n', 'J', '67', '1885']

SOLUTION:
M, e, P, h, D, s, y, T, t, c, b, s, j, o, Z, Y, Y, N, c, l, u, Q, n, J, 271, 2101, 9923, 1719, 5551, 4207, 8239, 1921, 3273, 5929, 5663, 67, 1885