biswasrohit20

star

Mar 28th, 2021 (edited)
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. triangle_char = input('Enter a character:\n')
  2. triangle_height = int(input('Enter triangle height:\n'))
  3. print()
  4. for i in range(0, triangle_height):
  5. for j in range(0, i + 1):
  6. print(triangle_char + " ", end="")
  7. print()
Add Comment
Please, Sign In to add comment