Input: 4, 4 output expected:
****
*..*
*..*
****
My output:
*
*
*
*
*
.
.
*
*
.
.
*
*
*
*
*
My code:
for i in range(1, 5):
for j in range(1, 5):
if i == 1 or i == 4 or j == 1 or j == 4:
print("*")
else:
print(".")