Lists and Dictionaries: Difference between revisions
Appearance
Created page with "== Lists == <syntaxhighlight lang="python" line> def quick_sort(arr): less = [] pivot_list = [] more = [] if len(arr) <= 1: return arr else: pass </syntaxhighlight>" |
|||
Line 1: | Line 1: | ||
== Lists == | == Lists == | ||
Create a list | |||
<syntaxhighlight lang="python" line> | <syntaxhighlight lang="python" line> |
Revision as of 09:34, 31 March 2024
Lists
Create a list
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass