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: ['j', 'h', '1213', '2235', 'Z', 'z', 'y', '3173', 'U', '3409', '9049', 'g', '3287', 's', 'n', '7121', '1697', 'T', '2395', 'y', 'M']

SOLUTION: j, h, Z, z, y, U, g, s, n, T, y, M, 1213, 2235, 3173, 3409, 9049, 3287, 7121, 1697, 2395

PROBLEM: ['3501', 'g', 'Z', 'Q', '867', '1659', '4049', '7137', 'r', 'Q', '1759', 'W', '667', '1997', 'D', '3655', 'h', '2805', 'R', '5181']

SOLUTION: g, Z, Q, r, Q, W, D, h, R, 3501, 867, 1659, 4049, 7137, 1759, 667, 1997, 3655, 2805, 5181

PROBLEM: ['211', 'b', 'r', 'B', '3773', 'G', '9149', '3089', 'c', 'B', '1165']

SOLUTION:
b, r, B, G, c, B, 211, 3773, 9149, 3089, 1165