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: ['3217', '5145', 'Z', 'a', 'x', 'm', 'f', 'p']

SOLUTION: Z, a, x, m, f, p, 3217, 5145

PROBLEM: ['p', '5531', '2467', '7415', 'w', '2487', 'V', '965', 'O', 't', '6221', 'J', 'J', '5297', 'v', '4443', 'w', 'D']

SOLUTION: p, w, V, O, t, J, J, v, w, D, 5531, 2467, 7415, 2487, 965, 6221, 5297, 4443

PROBLEM: ['g', '6803', 'p', 's', 'H', 'v', 'R', 'M', '2771', 'C', '9743', 'R', '497', 'f', '8713', 'g', '369', '2901', 'l', 'r', '8245', 'r', '2991', 'P', '6859', 'm', 'G', '3529', 'P', '3323', 'P', 'Z', 'w', '5139', '7567', 'A', 'm', 'p']

SOLUTION:
g, p, s, H, v, R, M, C, R, f, g, l, r, r, P, m, G, P, P, Z, w, A, m, p, 6803, 2771, 9743, 497, 8713, 369, 2901, 8245, 2991, 6859, 3529, 3323, 5139, 7567