Scripting Basics: Difference between revisions

From San Andreas Multiplayer
Jump to navigationJump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
<pre><code>
<syntaxhighlight lang="python" line>
function helloWorld() {
def quick_sort(arr):
    console.log("Hello, world!");
less = []
}
pivot_list = []
</code></pre>
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>

Revision as of 12:58, 3 November 2024

def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass