Code Golf: Code Golf: Difference between revisions

Python: shorter code
(OCaml: compress codes)
(Python: shorter code)
Line 319:
=={{header|Python}}==
;Python 3:
WithUsing string literals, the following weighs in at 2522 bytes.
<syntaxhighlight lang="python">print(end="Code Golf",end="")</syntaxhighlight>
 
Without string literals, this is 5852 bytes long.
<syntaxhighlight lang="python">print(end=0x436f646520476f6c66.to_bytes(9).decode(),end=str())</syntaxhighlight>
 
# or:
 
for c in 37,9,2,3,70,33,9,10,0:print(end=chr(c^102))</syntaxhighlight>
 
=={{header|QBasic}}==
559

edits