In this tutorial, we are going to learn about how to repeat a string n (number) of times in Python.
We can a repeat a string n times by multiplying the
string with a specificed number.
Here is an example, that repeats the given string for 3 times:
name = "apple" repeated = name * 3 print (repeated)