Solution Review: Repetition and Concatenation
Review the solution for the "Repetition and Concatenation" exercise.
We'll cover the following...
We'll cover the following...
Solution
Let’s explore the solution to the problem of repetition and concatenation.
Press + to interact
def rep_cat(x, y):return str(x) * x + str(y) * yprint(rep_cat(3, 4))
Explanation
Here’s a line-by-line explanation of the code ...