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: ['q', '8387']

SOLUTION: q, 8387

PROBLEM: ['7065', 'q', 'P', 'E', 'O', 'A', 'z', '8863', 't', 'L', 'v', 'n', '2159', '7027', '3179', 'u', '7143', '4687', 'K', '9581']

SOLUTION: q, P, E, O, A, z, t, L, v, n, u, K, 7065, 8863, 2159, 7027, 3179, 7143, 4687, 9581

PROBLEM: ['X', '4861', '4531']

SOLUTION:
X, 4861, 4531