green clothes hanger
Photo by Keagan Henman on Unsplash

You have been doing math calculations since a very young age, from adding two numbers, to multiplying, dividing, and finding the square root of a number by hand.

In Python, you can also multiply a string with a number.

Yes, you read that right. You do not have to do something big, or fancy: You can just take a string and multiply it with any natural number.

You may be wondering, “What’s the result? I know what is 3 * 3, but I don’t know what’s going to be the result of 3 * ‘abc’?

If you multiply a string with a number in Python, you are going to repeat that string that many times without having to manually type it yourself:


That’s basically it. I hope you find it useful.