Template:Comment: Difference between revisions

From FreeAllegiance Wiki
Jump to navigationJump to search
(New page: <span style="color:#888">''{{{1}}}''</span></noinclude> Category:Template == Usage sample == def list(*stuff): {{comment|#accept a list as argument}} return ", ".join(stuff) ...)
 
(Whoops.)
Line 1: Line 1:
<span style="color:#888">''{{{1}}}''</span></noinclude>
<span style="color:#888">''{{{1}}}''</span><noinclude>


[[Category:Template]]
[[Category:Template]]

Revision as of 15:30, 13 February 2009

{{{1}}}

Usage sample

def list(*stuff): #accept a list as argument
  return ", ".join(stuff)

#All of the following are valid calls.
print list("foo")
print list("foo", "bar")
print list("foo", "bar", "bananana")