Anonymous user
Sorting algorithms/Bubble sort: Difference between revisions
→[[Python]]
Line 170:
<pre>
>>> foo = [3, 5, 2, 6, 1]
>>> sorted(foo)
[1, 2, 3, 5, 6]
>>> foo
[3, 5, 2, 6, 1]
|
Line 170:
<pre>
>>> foo = [3, 5, 2, 6, 1]
>>> sorted(foo)
[1, 2, 3, 5, 6]
>>> foo
[3, 5, 2, 6, 1]
|