SHARE
TWEET

Untitled

a guest Jun 19th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n=3 r=n*2-1 p=n*2 for i in range(1,p): for j in range(1,p): if i==1 or i==r: print('*',end=' ') else: if j==i or j==i+2*(n-i): print('*',end=' ') else: print(' ',end=' ') print() print() n=5 r=n*2-1 p=n*2 for i in range(1,p): for j in range(1,p): if i==1 or i==r: print('*',end=' ') else: if j==i or j==i+2*(n-i): print('*',end=' ') else: print(' ',end=' ') print() print() n=8 r=n*2-1 p=n*2 for i in range(1,p): for j in range(1,p): if i==1 or i==r: print('*',end=' ') else: if j==i or j==i+2*(n-i): print('*',end=' ') else: print(' ',end=' ') print()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top