Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- a number will be the input
- the output will be a diamond of numbers
- just run the damn thing :3
- '''
- n = int (input())
- for j in range (1,n+1,1) :
- print (" "*(2*n-2*j+1),end = "")
- for i in range (1,2*j,1) :
- print (i,end =" ")
- print ("")
- #lower part
- for m in range (n-1,0,-1) :
- print (" "*(2*n-2*m +1),end = "" )
- for k in range (1,2*m,1):
- print(k,end= " ")
- print ("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement