for i in range (1,5):
if(i==1 or i==4):
for x in range (1,5):
print("*",end=" ")
else:
for j in range (1,5):
if (j==1 or j==4):
print("*",end=" ")
else:
print(" ",end="")
print(" ")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter