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