Question: By python programming Calc de Write a Python function combination Sort(strList) that takes a list of unique strings strlist as an argument, where each string


By python programming
Calc de Write a Python function combination Sort(strList) that takes a list of unique strings strlist as an argument, where each string is a combination of a letter from a to z and a number from o to 99, the initial character in string being the letter. For example a23. d5, 999 are some strings in this format. This function should sorts the list and return two lists (L1, L2) in the order mentioned below. L1: First list should contain all strings sorted in ascending order with respect to the first character only. All strings with same initial character should be in the same order as in the original list. L2: In the list Ll above, sort the strings starting with same character, in descending order with respect to the number formed by the remaining characters. Example: Sample input 1: d34, 954, 112, 587, gl, C65, 940, 95, 077 Sample output 1: L1: 687, 265, 034, 012, 077, 954, gl, 940, 95 2. hoz -65 H24 212 ACA An Reading list 2171001449@student onlinedegree.tm ac in + Calce this format. This function should sorts the list and return two lists (L1, L2) in the order mentioned below. Ll: First list should contain all strings sorted in ascending order with respect to the first character only. All strings with sale initial character should be in the same order as in the original list. L2: In the list Ll above, sort the strings starting with same character, in descending order with respect to the number formed by the remaining characters. Example: Sample input 1: d34, 954, d12, b87, 91, 065, 940, 95, 077 Sample output 1: L1: 687, 265, 34, dl2, d77, 954, 91, 940, 95 L2: b87, 265, 077, 034, 012, 954, 940. g5 .91 please click on "Test Run" button to see the status of public test cases, Assignment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
