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: ['r', 'g', '5847', '329', '6267']

SOLUTION: r, g, 5847, 329, 6267

PROBLEM: ['9083', '4969', 'P', '3831', 'q', 'o', 'Z', 'H', 'H', '5829', 'L', 'q', 'l', 'W', '1787', '1507', 'A', '5693', 'i', '889', '3445', '2437', '6987', '3987', '4551', '4723', '655', 's', 'P']

SOLUTION: P, q, o, Z, H, H, L, q, l, W, A, i, s, P, 9083, 4969, 3831, 5829, 1787, 1507, 5693, 889, 3445, 2437, 6987, 3987, 4551, 4723, 655

PROBLEM: ['1385', 'w', '2497', '7177', '19', '1209', 'y', 'E', 'E', '6455', 'T', 'r', '8855', 'k', '5777', 'W', '5299', '8263', 'E', '7901', 'K', 'U', '347', '5625', '8509', 'v', '3419', '9363', 'M', '3739']

SOLUTION:
w, y, E, E, T, r, k, W, E, K, U, v, M, 1385, 2497, 7177, 19, 1209, 6455, 8855, 5777, 5299, 8263, 7901, 347, 5625, 8509, 3419, 9363, 3739