Jump to content

Lists and Dictionaries: Difference between revisions

From Slow Like Wiki
Rob (talk | contribs)
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>"
 
Rob (talk | contribs)
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