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: ['A', '1797', 'h', '831', 'R', '1479', '847', '9057', '2253', '7111', 'M', 'p', '8749', 'm', '3599', '4911', 'c', 'X', '6719', '1513', '6901', '7125', '7697', 'W', 'x', 'G', 'L', 'J', 'W']

SOLUTION: A, h, R, M, p, m, c, X, W, x, G, L, J, W, 1797, 831, 1479, 847, 9057, 2253, 7111, 8749, 3599, 4911, 6719, 1513, 6901, 7125, 7697

PROBLEM: ['B', 'H', 'm', 'S']

SOLUTION: B, H, m, S

PROBLEM: ['1053', 'v', 'z', 'T', 'S', '609', 'd', '5437', 'N', 'O', '5875', '557', 'q', 'r', 'T', 'g', '9871', 'u', 's', 'F', '7861', '3709', 'D', '3969', 'j', '7187', 'H', 'M', '3551', '6261', 'p', 'N', '9013', '9785']

SOLUTION:
v, z, T, S, d, N, O, q, r, T, g, u, s, F, D, j, H, M, p, N, 1053, 609, 5437, 5875, 557, 9871, 7861, 3709, 3969, 7187, 3551, 6261, 9013, 9785