Print itself: Difference between revisions

→‎{{header|Python}}: answer with a code that actually answer the challenge
(add Ruby)
(→‎{{header|Python}}: answer with a code that actually answer the challenge)
Line 221:
 
=={{header|Python}}==
<syntaxhighlight lang="python">import sys
{{works with|python3}}
with open(sys.argv[0],'r'__file__) as inputf:
<syntaxhighlight lang="python">import sys
print(f.read())
with open(sys.argv[0],'r') as input:
print(row, end='')</syntaxhighlight>
for row in input:
print(row, end='')</syntaxhighlight>
 
=={{header|Raku}}==