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: ['4221', '129', '9065', '9837', 'K', 'N', 'G', '7003', 'b', 'D', '5677', 'z', '8099', 'd', 'Q', '2031', 'T', '8599', '8613', '2269', '4661', 'A', '9917', '9095', '5695', 'X', '1081', 'g', 'M', '5859', '861', 'y', '2043', 'N', '3547', 'E', '659', 'B', '1217', 'C']

SOLUTION: K, N, G, b, D, z, d, Q, T, A, X, g, M, y, N, E, B, C, 4221, 129, 9065, 9837, 7003, 5677, 8099, 2031, 8599, 8613, 2269, 4661, 9917, 9095, 5695, 1081, 5859, 861, 2043, 3547, 659, 1217

PROBLEM: ['7519', 'i', '5505', '9483', '2085', 'H', '9653', 'i', 'y', 'A', '3985', '3723', '3135', 'L', '2791', '8189', 'E', '9093', '8171', 'L', 'G', 'h', '1925', '7889', 'k', 's', 'Y', 'Q', '3571', 'P', '7375', '8687']

SOLUTION:
i, H, i, y, A, L, E, L, G, h, k, s, Y, Q, P, 7519, 5505, 9483, 2085, 9653, 3985, 3723, 3135, 2791, 8189, 9093, 8171, 1925, 7889, 3571, 7375, 8687