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: ['7879', 'h', '5401', 'e', 'B', '9419', 'f', '7509', '2617', 'r', 'q', 'L', '2453']

SOLUTION: h, e, B, f, r, q, L, 7879, 5401, 9419, 7509, 2617, 2453

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: ['O', '6873']

SOLUTION:
O, 6873