Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

=+4 Develop and deliver the CCT program.

Answered: 1 week ago

Question

=+5 Evaluate whether the CCT program was effective.

Answered: 1 week ago

Question

=+Identify the type of global assignment for which CCT is needed.

Answered: 1 week ago