Difference between revisions of "Sandbox3"

From UVOO Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 
#/usr/bin/env python3
 
#/usr/bin/env python3
 +
def quick_sort(arr):
 +
less = []
 +
pivot_list = []
 +
more = []
 +
if len(arr) <= 1:
 +
return arr
 +
else:
 +
pass
 +
</syntaxhighlight>
 +
 +
 +
<syntaxhighlight lang="python" line='line'>
 
def quick_sort(arr):
 
def quick_sort(arr):
 
less = []
 
less = []

Revision as of 20:33, 18 January 2020

<h1>/usr/bin/env python3</h1>

def quick_sort(arr):
    less = []
    pivot_list = []
    more = []
    if len(arr) &lt;= 1:
        return arr
    else:
        pass
1 def quick_sort(arr):
2     less = []
3     pivot_list = []
4     more = []
5     if len(arr) &lt;= 1:
6         return arr
7     else:
8         pass