Why does '10' * 3 in python give me '101010'?

Example:

result = '10' * 3
print(result)  # '101010'
In Python, multiplying a string by a number will repeat the string that number of times. Ensure you're working with the correct data types for your intended operation.

Beginner's Guide to Python