Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input("Input N = "))
- n = a + (a - 1)
- print("output")
- print("*" * n)
- for line in range(n - 2):
- print("", end = ' ')
- ins = 0
- while ins < (n - 2):
- if ins == line: print("*", end = '')
- elif ins == (n - 3) - line: print("*", end = '')
- else :print(" ", end = '')
- ins += 1
- print(" ")
- print("*" * n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement