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: ['7455', 'p', '77', '3019', '135', '7585', '8201', '7115', '6619', 'F', '8747', 'K', 'p', '577', '5725', '1403', 'B', 'G', '627', 'S', '7325', '9579', '1985', 'W', '539', 'L']

SOLUTION: p, F, K, p, B, G, S, W, L, 7455, 77, 3019, 135, 7585, 8201, 7115, 6619, 8747, 577, 5725, 1403, 627, 7325, 9579, 1985, 539

PROBLEM: ['597', '6047', 'c', 'B', 'Z', '9349', '561', '8815', '4407', 't', '4855', '7361', '5215', 'q', '9735', 'A', 'n', '4895', '7731', '4227', '9977', 'J', 'p', '6473', 'd', '9137', 'L', '745', 'C', 'T']

SOLUTION: c, B, Z, t, q, A, n, J, p, d, L, C, T, 597, 6047, 9349, 561, 8815, 4407, 4855, 7361, 5215, 9735, 4895, 7731, 4227, 9977, 6473, 9137, 745

PROBLEM: ['5239', 'e', '5513', 'Y', 'c']

SOLUTION:
e, Y, c, 5239, 5513