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: ['5059', 'C', '7271', '1145', 'G', 'k', 'H', '1531', '6343', 'u', '2799', 'E', 'o', '253', '223', '8043', '2257', '1065', '5991', 'W']

SOLUTION: C, G, k, H, u, E, o, W, 5059, 7271, 1145, 1531, 6343, 2799, 253, 223, 8043, 2257, 1065, 5991

PROBLEM: ['M', '5785', 'N', 'n', 'Q', '7145', '7247', 'w', '4877', '9477', 'z', 'i', 'T', 'D', '4815', 'd', 'X', 'V', '3411', 'a', 'J', 'v', '5259', 'C', 'z', 'w', '99', '2905', '2897', 'k', '6537', 's', 'q', 'W', '5537', 'K']

SOLUTION: M, N, n, Q, w, z, i, T, D, d, X, V, a, J, v, C, z, w, k, s, q, W, K, 5785, 7145, 7247, 4877, 9477, 4815, 3411, 5259, 99, 2905, 2897, 6537, 5537

PROBLEM: ['3669', 'u', 'U', '9421', 'd', 'f', 'K', 'o', '6873']

SOLUTION:
u, U, d, f, K, o, 3669, 9421, 6873