Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- triangle_char = input('Enter a character:\n')
- triangle_height = int(input('Enter triangle height:\n'))
- print()
- for i in range(0, triangle_height):
- for j in range(0, i + 1):
- print(triangle_char + " ", end="")
- print()
Add Comment
Please, Sign In to add comment