Advertisement
Spocoman

06. Rhombus of Stars

Jan 2nd, 2022 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. n = int(input())
  2.  
  3. for row in range(1, n + 1):
  4.     print(' ' * (n - row) + '* ' * row)
  5.  
  6. for row in range(n - 1, 0, - 1):
  7.     print(' ' * (n - row) + '* ' * row)
  8.  
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement