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: ['X', '4861', '4531']

SOLUTION: X, 4861, 4531

PROBLEM: ['l', '5217', '8579', 'Y', '9315', 'r', 'T', 'i']

SOLUTION: l, Y, r, T, i, 5217, 8579, 9315

PROBLEM: ['7431', '6083', '8513', '7665', 'P', 'l', '7215', 'o', 'R', 'F', '2119', 'e', 'H', 'R', 'n', 'E', 'd', '3005', '5393', 's', '9159', 'P', '9975', '4427', 'v', '9111', '6371', 'F', '4921', '9927', '4135', '2699', 'V', '5479', '1543', '7315', 'p', '2215', '4697']

SOLUTION:
P, l, o, R, F, e, H, R, n, E, d, s, P, v, F, V, p, 7431, 6083, 8513, 7665, 7215, 2119, 3005, 5393, 9159, 9975, 4427, 9111, 6371, 4921, 9927, 4135, 2699, 5479, 1543, 7315, 2215, 4697