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: ['p', 'h', '8605', 'd', '5185', 'B', 'C', '1331', 'r', '2355', '1035', '3547', '7761', '8951', 'T', '1981', 'v', 'a', 'w', 'H', 'e', '5075', 'h', 'o', '3765', '7729', 'Q', '9289', 'i', 'k', 'E', 'k', 'i', 'd', '4879', '821']

SOLUTION: p, h, d, B, C, r, T, v, a, w, H, e, h, o, Q, i, k, E, k, i, d, 8605, 5185, 1331, 2355, 1035, 3547, 7761, 8951, 1981, 5075, 3765, 7729, 9289, 4879, 821

PROBLEM: ['G', '3005', '3449', '9811', 'V', '3289', '7909', 'J', '1573', 'p', '511', 'v', 'c', '2683', '7415', 'T', 'M', '133', '9175', '43', 'N', 'O', '5191', 'U', 'g', 'M', '13', '2993', '3727', 'i', 'z', 'b', '5811', '5159']

SOLUTION: G, V, J, p, v, c, T, M, N, O, U, g, M, i, z, b, 3005, 3449, 9811, 3289, 7909, 1573, 511, 2683, 7415, 133, 9175, 43, 5191, 13, 2993, 3727, 5811, 5159

PROBLEM: ['m', '5981', '873', '935', '6413', '8021', '5457', 'h', 'h', '7587', '753', 'P', '2699', '2727', '825', '4387', '2405', 'y', 'A']

SOLUTION:
m, h, h, P, y, A, 5981, 873, 935, 6413, 8021, 5457, 7587, 753, 2699, 2727, 825, 4387, 2405