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: ['n', '5329', '7635', 'D', 'D', 'Y', '3097', 'Q', 'S', 'e', '4525', '5485', '6717', 'q', '7315', 'X', '8971', 'd', 'M', '407', '4931', 'o', '139']

SOLUTION: n, D, D, Y, Q, S, e, q, X, d, M, o, 5329, 7635, 3097, 4525, 5485, 6717, 7315, 8971, 407, 4931, 139

PROBLEM: ['j', '8187', '6645', 'r', 'N', '7521', 'z', 'E', 'd', '8885', '9273', 'Y', '8655', 'M', '1809', 'U', '2487', '5875', 'c', '3993', '9019', 'K']

SOLUTION: j, r, N, z, E, d, Y, M, U, c, K, 8187, 6645, 7521, 8885, 9273, 8655, 1809, 2487, 5875, 3993, 9019

PROBLEM: ['G', '9375', 'y', '3311', '7727']

SOLUTION:
G, y, 9375, 3311, 7727