Skip to content

Instantly share code, notes, and snippets.

@sayantanHack
Created February 13, 2019 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sayantanHack/baefc433eccbc167db80ff61f096fce8 to your computer and use it in GitHub Desktop.
Save sayantanHack/baefc433eccbc167db80ff61f096fce8 to your computer and use it in GitHub Desktop.
n=4
m=1
for i in range(n):
for j in range(n):
print("*", end='')
print('*')
n=n-1
print('*')
for a in range(4):
for b in range(m):
print("#",end='') # change the # into star (*)
print('#') # I used# for make you understand the logic ...
m=m+1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment