Multiplying Strings in Python
Python also allows you to multiply strings, i.e. increase the number of the same string by a certain number.
Let's multiply our string by 3 times:
print(3 * 'abc') # 'abcabcabc'
Write how you can get the following result:
'a1b2a1b2a1b2a1b2'
Write how you can get the following result:
'abab1213'