Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. a = int(input("Input N = "))
  2. n = a + (a - 1)
  3. print("output")
  4. print("*" * n)
  5. for line in range(n - 2):
  6.    print("", end = ' ')
  7. ins = 0
  8. while ins < (n - 2):
  9.   if ins == line: print("*", end = '')
  10.   elif ins == (n - 3) - line: print("*", end = '')
  11.   else :print(" ", end = '')
  12.   ins += 1
  13.   print(" ")
  14.   print("*" * n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement