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: ['D', '8577', '7971', 'x', 'm', '8323', 'T', '5257', '3341', '3963', '7895', '1465', '1987', '9909', 'o', '245']

SOLUTION: D, x, m, T, o, 8577, 7971, 8323, 5257, 3341, 3963, 7895, 1465, 1987, 9909, 245

PROBLEM: ['921', 'u', '6775', '9867', '1727', 'U', '5903', 'E', '1769', '2411', '3819']

SOLUTION: u, U, E, 921, 6775, 9867, 1727, 5903, 1769, 2411, 3819

PROBLEM: ['7163', 'k', 'k', 'A', 'M', 'P', '6089', '6039', 'x', '9595', 'v', 'I', 'i', 'v', 'K', 'L', 'N', '6185', '1125', '737', 'J', '3', 'W', '393', 'P', 'U', 'D', 'G', 's', '7669', 'R', 'y', '3279', '4045', '565', '7553', '8301', 'R']

SOLUTION:
k, k, A, M, P, x, v, I, i, v, K, L, N, J, W, P, U, D, G, s, R, y, R, 7163, 6089, 6039, 9595, 6185, 1125, 737, 3, 393, 7669, 3279, 4045, 565, 7553, 8301