Four sides of square: Difference between revisions

m
→‎Procedural: fix naming; remove unnecessary parentheses
m (→‎Procedural: fix naming; remove unnecessary parentheses)
Line 470:
===Procedural===
<lang python>size = 9
for Rowrow in range(size):
for Colcol in range(size):
if (Rowrow == 0 or Rowrow == size-1 or Colcol == 0 or Colcol == size-1):
print("1", end=" ")
else: