Difference between revisions of "Sandbox"
From World Wide Wiegert Wiki - WWWW
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<syntaxhighlight lang="python"> | == Welcome! == | ||
[[Random link]] | |||
== Syntax highlightning: == | |||
Code: | |||
{{ #tag: syntaxhighlight | | |||
<<noinclude/>syntaxhighlight lang="python"> | |||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
Line 9: | Line 15: | ||
pass | pass | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| lang=python }} | |||
< | Result: | ||
<syntaxhighlight lang="python" line="1"> | |||
def quick_sort(arr): | def quick_sort(arr): | ||
less = [] | less = [] | ||
Line 20: | Line 27: | ||
pass | pass | ||
</syntaxhighlight> | </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