SHARE
TWEET

Untitled

a guest Jun 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. input = N
  2. for x in range(2 * input - 1): print ("*", end="")
  3. print("") i = 0
  4. for x in range(input - 1):
  5.   for y in range(i+1): print(" ", end="")
  6.   print("*", end="")
  7.   for z in range(2 * input - 1 - 2 * (i+2)):
  8.     print(" ", end="")
  9.     if i != input - 2: print("*")
  10.     else: print("")
  11.     i += 1
  12.     i = input - 3
  13.     for x in range(input - 2):
  14.       for y in range(i+1):
  15.         print(" ", end="")
  16.       print("*", end="")
  17.       for z in range(2 * input - 1 - 2 * (i+2)): print(" ", end="") if i != -1: print("*") i -= 1
  18.        for x in range(2 * input - 1): print ("*", end="")
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