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: ['4197', 'A', '29', '765', 'i', 'n', '5651']

SOLUTION: A, i, n, 4197, 29, 765, 5651

PROBLEM: ['e', '1253', 'i', '5223', 'T', '5035', '1425', 'X', '985']

SOLUTION: e, i, T, X, 1253, 5223, 5035, 1425, 985

PROBLEM: ['m', '821', 'q', '7781', '8235', 'Z', '1579', 'U', 'U', 'm', 'l', 'c', '1513', '5929', 'O', 'M', 'U', 's', 'm', 'x', '2909', 'M', 'G', 'B', 'z', 'x', 'I', '5211', 'J', 'p', '7333', 'I', 'C', '1471', 'o', 't', '4729']

SOLUTION:
m, q, Z, U, U, m, l, c, O, M, U, s, m, x, M, G, B, z, x, I, J, p, I, C, o, t, 821, 7781, 8235, 1579, 1513, 5929, 2909, 5211, 7333, 1471, 4729