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: ['2397', '1403', '7057', 's', 'e', 'd', 'n', '1851', 'n', '5057']

SOLUTION: s, e, d, n, n, 2397, 1403, 7057, 1851, 5057

PROBLEM: ['S', '8623', '3431', 'l', '3533', 'M', '1275', 'b', '8911', 'X', '175', 'V', 'p', '8409', 't', 'i', '2873', 'J', 'v', '7249', '6847', '1585', 'h', 'y', 'I']

SOLUTION: S, l, M, b, X, V, p, t, i, J, v, h, y, I, 8623, 3431, 3533, 1275, 8911, 175, 8409, 2873, 7249, 6847, 1585

PROBLEM: ['h', 'm', '3449', '6653', 'H', '1817', 'X', 'j', 'E', '5123', 'D', '7473', 'C', 'a', 'G', 'W', 'E', '3587', 'Q', 'M', '2959', '5811', '8705', '8081', '1697', '9537', 'v', '5653', '379']

SOLUTION:
h, m, H, X, j, E, D, C, a, G, W, E, Q, M, v, 3449, 6653, 1817, 5123, 7473, 3587, 2959, 5811, 8705, 8081, 1697, 9537, 5653, 379