Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

What is the best conclusion for Xbar Chart? UCL A X B C B A LCL

Answered: 1 week ago