Difference between revisions of "Sandbox"
From World Wide Wiegert Wiki - WWWW
								
												
				| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| == Welcome! == | |||
| [[Random link]] | |||
| == Syntax highlightning: == | |||
| Code: | |||
| {{ #tag: syntaxhighlight | | {{ #tag: syntaxhighlight | | ||
| <<noinclude/>syntaxhighlight lang="python"  | <<noinclude/>syntaxhighlight lang="python"> | ||
| def quick_sort(arr): | def quick_sort(arr): | ||
| 	less = [] | 	less = [] | ||
| Line 14: | Line 16: | ||
| </syntaxhighlight> | </syntaxhighlight> | ||
| | lang=python }} | | lang=python }} | ||
| Result: | |||
| <syntaxhighlight lang="python" line="1"> | |||
| def quick_sort(arr): | |||
| 	less = [] | |||
| 	pivot_list = [] | |||
| 	more = [] | |||
| 	if len(arr) <= 1: | |||
| 		return arr | |||
| 	else: | |||
| 		pass | |||
| </syntaxhighlight> | |||
| Supported languages: https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages | |||
| [[File:8472.png]] | |||
Latest revision as of 16:49, 20 November 2023
Welcome!
Syntax highlightning:
Code:
<syntaxhighlight lang="python">
def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
</syntaxhighlight>
Result:
def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
Supported languages: https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages

