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: ['8903', '8775', '451', 'J', 'H', '4257', 'M', '549', 'A', 'H', '7433', 'D', 'v', 'g', '1261', 'W', '5047']

SOLUTION: J, H, M, A, H, D, v, g, W, 8903, 8775, 451, 4257, 549, 7433, 1261, 5047

PROBLEM: ['3563', 'Q', 'P', 'j', 'n', 'K', 'b', 'r', 'p', 'X', '7461', 'X', '463', 'Z', '6397', '8971', '3181', 'h', 'Q', '1829', '9827', '9131', '521', 'H', '6573', 'U', '9255', '1155', '7637', '1429', 'G', '9513', '429']

SOLUTION: Q, P, j, n, K, b, r, p, X, X, Z, h, Q, H, U, G, 3563, 7461, 463, 6397, 8971, 3181, 1829, 9827, 9131, 521, 6573, 9255, 1155, 7637, 1429, 9513, 429

PROBLEM: ['i', '5993', '5343', '7631', '5527', '5543', '5859', 'N', 'C', 'a', 'I', '6653', '3397', 'H', 'U', 'Z', 'D', '1475', '5907', 'y', '9715', 'Z', 'd', '5575', '4773', '5771', '3771', 'p']

SOLUTION:
i, N, C, a, I, H, U, Z, D, y, Z, d, p, 5993, 5343, 7631, 5527, 5543, 5859, 6653, 3397, 1475, 5907, 9715, 5575, 4773, 5771, 3771