Anonymous user
Sorting algorithms/Quicksort: Difference between revisions
→{{header|Python}}: use speaking variable names.
imported>MM m (→{{header|Python}}: : un-pythonic to have "else:" after "if condition: … return", as superfluous.) |
imported>MM (→{{header|Python}}: use speaking variable names.) |
||
Line 8,010:
=={{header|Python}}==
<syntaxhighlight lang="python">def
if len(
return
pivot =
for
if
elif
else:
return
a = [4, 65, 2, -31, 0, 99, 83, 782, 1]
a =
</syntaxhighlight>
|