Print itself: Difference between revisions

Content added Content deleted
(add Ruby)
(→‎{{header|Python}}: answer with a code that actually answer the challenge)
Line 221: Line 221:


=={{header|Python}}==
=={{header|Python}}==
<syntaxhighlight lang="python">
{{works with|python3}}
with open(__file__) as f:
<syntaxhighlight lang="python">import sys
print(f.read())
with open(sys.argv[0],'r') as input:
</syntaxhighlight>
for row in input:
print(row, end='')</syntaxhighlight>


=={{header|Raku}}==
=={{header|Raku}}==