Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def star_print(n):
- m = n-1
- star = '*'
- space = ' '
- for i in range(-m,n):
- i = abs(i)
- print i*space, (2*(m-i)+1)*star
- star_print(1)
- star_print(3)
- star_print(5)
- star_print(7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement