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: ['K', '797', '3531', 't', 'e', '2261']

SOLUTION: K, t, e, 797, 3531, 2261

PROBLEM: ['6339', 's', 'y', '8869', '1179', 'L', 'M', 'H', 'G', '1989', 'm', 'x', '8581', '1917', 'Q', '5041', '6379', '4323', '417', '1251', '5483', '1927', '2315', '9079', '2089', 'N', '2731', '4553', 'I', '1791', '9797', 'k', 'r', 'D', 'x']

SOLUTION: s, y, L, M, H, G, m, x, Q, N, I, k, r, D, x, 6339, 8869, 1179, 1989, 8581, 1917, 5041, 6379, 4323, 417, 1251, 5483, 1927, 2315, 9079, 2089, 2731, 4553, 1791, 9797

PROBLEM: ['7683', 'l', '5195', 'P', '2049', '6993', '3485', 'M', '9371', '749', 'I', 's', 'h', 'I', 'z', '3759', '6461', 's', 'a', 'L', 'n', '8593', '4651', 'z', '6629', 'U', 't', '9115', '7817', 'R', 'W', 'v', '5313', '7125', 'e', 'b', 'X', 'S', '4445', 'Q']

SOLUTION:
l, P, M, I, s, h, I, z, s, a, L, n, z, U, t, R, W, v, e, b, X, S, Q, 7683, 5195, 2049, 6993, 3485, 9371, 749, 3759, 6461, 8593, 4651, 6629, 9115, 7817, 5313, 7125, 4445