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: ['1635', 'y', 'O', 'c', '5409', '9327', 'X', 'X', 'O', '5781', '675', 'Y', 'K', '4147', 'x', 'I', 'J', '8755', '6779', 'Y', 'u', 'F', 'i', 'p', 'T', '2503', '7883', '8253', 'A', 'T', 'g', '6165', '7995']

SOLUTION: y, O, c, X, X, O, Y, K, x, I, J, Y, u, F, i, p, T, A, T, g, 1635, 5409, 9327, 5781, 675, 4147, 8755, 6779, 2503, 7883, 8253, 6165, 7995

PROBLEM: ['G', 'y', 'W', 'r', 'D', '2353', '2393', 'K', '6911', 'b', '2683', 'y', 'I', '9703', '3815', '5057', 'q', '9995', 'k', 'X', 'j', '4595', 'J', 'k', '7817', '9591', 'h', '279', '8983', '2521', '3407', 'R']

SOLUTION: G, y, W, r, D, K, b, y, I, q, k, X, j, J, k, h, R, 2353, 2393, 6911, 2683, 9703, 3815, 5057, 9995, 4595, 7817, 9591, 279, 8983, 2521, 3407

PROBLEM: ['J', 'M', '7209', '9251', 'B', '6259', 'p', '3919', 'K', 'S', '2987', '7183', '8481', 'j', '6449', 'u', 'K', '6917', 'v', 'q', 'g', 'v', '1235', '3199', 'W', 'E', '3293', '6285', '4513', 'J']

SOLUTION:
J, M, B, p, K, S, j, u, K, v, q, g, v, W, E, J, 7209, 9251, 6259, 3919, 2987, 7183, 8481, 6449, 6917, 1235, 3199, 3293, 6285, 4513