Question: write a program that takes an integer input until the user enters an integer between 1 and 5 then draw a triangle whose height is
write a program that takes an integer input until the user enters an integer between 1 and 5 then draw a triangle whose height is in the pattern given in sample runs
there are dashes("-")at the beginning and end of each line (except for the last line).Additionally, you may assume that the user will always enter an integer as input

write in python
Enter the height: 4 --1--- --313-- -53135- 7531357 Enter the height: 5 ---1---- --313--- --53135-- - 7531357- 975313579 Enter the height: 6 Enter the height: -1 Enter the height: 0 Enter the height: 3 --1-- -313- 53135
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
