Four sides of square: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
(→{{header|Python}}: Normalized from tabs to space multiples in Calmosoft's contribution.) |
||
Line 442: | Line 442: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
<lang python> |
<lang python>size = 9 |
||
size = 9 |
|||
for Row in range(size): |
for Row in range(size): |
||
for Col in range(size): |
|||
if (Row == 0 or Row == size-1 or Col == 0 or Col == size-1): |
|||
print("1", end=" ") |
|||
else: |
|||
print("0", end=" ") |
|||
print()</lang> |
|||
</lang> |
|||
{{out}} |
{{out}} |
||
See Raku output. |
See Raku output. |