Sorting number with ascending order without using "sorted" function in Python
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
I have an assignment that requests creating a programme 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".
Is there anyone can help me to convert the following code?
____________________________________________________________________
ListInput = (1, -100, 25, -78, 75.5, 75.4, 11, 2.1)
ListSort = sorted(ListInput)
print("ListOutput=", ListSort)
1 Kommentar
Stephen23
am 21 Jan. 2021
How is this question related to MATLAB or any TMW product?
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!