Computer python program....
Attachments:

Answers
Answered by
3
Required program in python:
# Defining a function
def draw(L, B):
for i in range(1, B+1):
print("* " * L)
# Calling the function
draw(6,5)
Explanation:
- Define a function named draw using def keyword taking two arguments L and B which are lengths and breadths respectively.
- Using for loop to print the stars in required rows and columns.
- Now call the function using draw() provided with two arguments.
Output:
* * * * * *
* * * * * *
* * * * * *
* * * * * *
* * * * * *
Similar questions