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: ['E', 'A', '4473', '6193', 'a', 'j', 'q', 'X', '4699', '3557', 'c', 'E', '869', '7195', '6103', '2727', '2717', '8217', '4767', '2127', '9591', 'Y', 'z', 'e', 'H', 'D', '7319', 'v', 'i', '7817']

SOLUTION: E, A, a, j, q, X, c, E, Y, z, e, H, D, v, i, 4473, 6193, 4699, 3557, 869, 7195, 6103, 2727, 2717, 8217, 4767, 2127, 9591, 7319, 7817

PROBLEM: ['e', '1253', 'i', '5223', 'T', '5035', '1425', 'X', '985']

SOLUTION: e, i, T, X, 1253, 5223, 5035, 1425, 985

PROBLEM: ['x', 'S', 'i', '5713', '4079', '2681', '4153', 'j', '9471', 'y', 'k', 'J', '7871', '1405', '1755', 'P', '1049', '5131', 'w', '8551', '981', 'l', '2649', 'M']

SOLUTION:
x, S, i, j, y, k, J, P, w, l, M, 5713, 4079, 2681, 4153, 9471, 7871, 1405, 1755, 1049, 5131, 8551, 981, 2649