The drawRectangle function that draws a solid rectangle of a specific size on the screen. This function has three parameters.
a. The length: An integer identifying the length of the rectangle in the number of symbols used.
b. The width: An integer identifying the width of the rectangle in the number of symbols used.
c. The fillChar: A character used for drawing the rectangle.
For example, a call like drawRectangle(10, 5, ‘*’) results in the following output on
the screen:
**********
**********
**********
**********
**********
Is there anyone can help me about drawing 3 shapes in python?
- Posted:
- 3+ months ago by musicmans...
- Topics:
- python, solid, drawing, draw, screen, shape, size, shapes, length
Details:
Added 3+ months ago:
another 2 are The drawLine function with three parameters and The drawTriangle function with three parameters to draw a solid triangle
Responses
No responses have yet been posted. Add your response to this question.