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: ['p', '5531', '2467', '7415', 'w', '2487', 'V', '965', 'O', 't', '6221', 'J', 'J', '5297', 'v', '4443', 'w', 'D']

SOLUTION: p, w, V, O, t, J, J, v, w, D, 5531, 2467, 7415, 2487, 965, 6221, 5297, 4443

PROBLEM: ['4389', '4285', 'B', '3023', 'I', 'U', 'E', 'y', '8043', 'i', '4999', 'w', '893', '9781', '8959', '705', '2217', 'f', '7321', 'T', 's', 'E', '911', 'A', '4243', '2429', 'R', 'O', 'v', '6623', '93', '7305', '5977']

SOLUTION:
B, I, U, E, y, i, w, f, T, s, E, A, R, O, v, 4389, 4285, 3023, 8043, 4999, 893, 9781, 8959, 705, 2217, 7321, 911, 4243, 2429, 6623, 93, 7305, 5977