I have an assignment that requests creating a program to sort numbers in ascending order.
However, it is restricted to use built-in functions in Python, but only able to use “remove”, “extend” and “append”. It becomes difficult for me since the alternative is not allowed.
Is there anyone knows how to convert the following code?
ListInput = (1, -100, 25, -78, 75.5, 75.4, 11, 2.1)
ListSort = sorted(ListInput)
print(“ListOutput=”, ListSort)