Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pyhon Python Python Please build your OWN python program/function to sort numbers in ascending order. The input is a list which includes a series of

Pyhon Python Python

Please build your OWN python program/function to sort numbers in ascending order. The input is a list which includes a series of numbers. The length of the list and the numbers in the list random. !!!!! Format and Requirement !!!!!!! 1.Please include comments to explain your code 2. Please declare a function name as ListSort() to accept 1 input list. 3. There is 1 input to the function: 4. The input should be a list named as ListInput in the function 5. The function ListSort() should return an output (a list with the numbers in ascending order) 6. Please store the output list in a list named ListOutput Example: Input: ListA = [10, 50, 100, -1, 60, 10.5, 20, -70.5, 30] Function Call: ListOutput = ListSort(ListA) Output: ListOutput = [-70.5, -1, 10, 10.5, 20, 30, 50, 60, 100] ListA = [10, 50, 100, -1, 60, 10.5, 20, -70.5, 30] Specification: 1. Only basic functions are allowed. 2. You CANNOT use any library, package or functions in your program. For example, sort, sorted or list.sort functions are not allowed in your homework. 3. For the list function, only append, extend and remove are allowed

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

Students also viewed these Databases questions