Question: ##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

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
Get step-by-step solutions from verified subject matter experts
