Difference between revisions of "Sandbox"
From World Wide Wiegert Wiki - WWWW
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Welcome! == | == Welcome! == | ||
[Random | [[Random link]] | ||
== Syntax highlightning: == | == Syntax highlightning: == | ||
Line 17: | Line 17: | ||
| lang=python }} | | lang=python }} | ||
Result: | Result: | ||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python" line="1"> | ||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
Line 28: | Line 28: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Supported languages: https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Supported_languages | 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