Skip to content

Instantly share code, notes, and snippets.

@popey456963
Created October 26, 2015 15:27
Show Gist options
  • Save popey456963/eafe7f34bacc02fa3961 to your computer and use it in GitHub Desktop.
Save popey456963/eafe7f34bacc02fa3961 to your computer and use it in GitHub Desktop.
Squares of Hashes
n = int(input())
if n!= 1:
string = ""
for i in range(n):
string +="#"
print(string)
for i in range(n-2):
print('#'+ " "*(n-2) + "#")
print(string)
else:
print("#")
@developius
Copy link

n=int(raw_input())
if n>1:
 print(n*"#")
  for i in range(n-2):
   print("#" + (n-2) * " " + "#")
   print(n*"#")
else:print("#")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment