Question: Write a function row(c1, n1, c2, n2) to return a row of characters which consists of n2 segments. Each segment will be formed by the

Write a function row(c1, n1, c2, n2) to return a row of characters which consists of n2 segments.

Each segment will be formed by the character c1 repeated n1 times.

The segments will be separated with the character c2.

Use the docstring """Returns a row of characters""".

Do not change the main program. Expected output:

|===|===|===|===|===|===|===|===|===|===|

# Main program (do not change): print(row('=', 3, '|', 10))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!