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: ['M', 'G']

SOLUTION: M, G

PROBLEM: ['q', 'm', '3639', '1029', '6027', 'l', '9765', '165', '2131', 'j', '1403', '8975', 'K', '2587', 'l', '5613', '5657', 'L', 'o', '6831', 'L', 'Q', '3345', '1265', 'F', 'Y', 'i', '3765', '6639', 'I', 'x', '6447', '5573', '8489', 'I', '5753']

SOLUTION: q, m, l, j, K, l, L, o, L, Q, F, Y, i, I, x, I, 3639, 1029, 6027, 9765, 165, 2131, 1403, 8975, 2587, 5613, 5657, 6831, 3345, 1265, 3765, 6639, 6447, 5573, 8489, 5753

PROBLEM: ['Y', '1979', 'c', 'A', 'Y', 'i', 'B']

SOLUTION:
Y, c, A, Y, i, B, 1979