Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

##CODE IN PYTHON Exercise 8 ASCII art is a drawing technique that uses ASCII characters to produce shapes. character (string): character corresponding to the unit

##CODE IN PYTHON

image text in transcribed

Exercise 8 ASCII art is a drawing technique that uses ASCII characters to produce shapes. character (string): character corresponding to the unit drawing direction (string): 1 for lower triangle, u for upper triangle Write a function drawTriangle with three arguments to draw a right isosceles triangle: - size is an integer representing the size of both legs Returns: - character is a string that defines the character used to fill the triangle (default should be a star) - direction is a string that defines whether the triangle is drawn as the upper right half (value " u ") or lower bottom half (value "l" which is the default)

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

a. Did you express your anger verbally? Physically?

Answered: 1 week ago