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: ['S', 'a', '6301', '8377', 'H', '8191', '9593', 'b', 'k', '2015', 'J', 'r', 'L', '8157', '4029', '6339', '2587', '6137', 'p', 'y', 'U', '4239', 'C', '159', '5927', '9739', 'o', 'g', '783', 'p', '2029', '8631', '5943', 'J', 'J', 'y', 'E', 'q', 'G', 'I']

SOLUTION: S, a, H, b, k, J, r, L, p, y, U, C, o, g, p, J, J, y, E, q, G, I, 6301, 8377, 8191, 9593, 2015, 8157, 4029, 6339, 2587, 6137, 4239, 159, 5927, 9739, 783, 2029, 8631, 5943

PROBLEM: ['2891', '2069', '497', '7927', 'S', '8211', 'g', 'X', '8385', '9813', 'W', '2619', '5449', '6807', 'n', 'f', '1949', '1747', '6579', 'x', 'Q', '9445', 'g', 'L', 'J', 'v', 'B']

SOLUTION: S, g, X, W, n, f, x, Q, g, L, J, v, B, 2891, 2069, 497, 7927, 8211, 8385, 9813, 2619, 5449, 6807, 1949, 1747, 6579, 9445

PROBLEM: ['L', '2071', '6577', 'q', 'x', 'y']

SOLUTION:
L, q, x, y, 2071, 6577