In this python basic program, we will repeat a given string 5 times.
Steps to solve the program
- Take a string as input.
- To repeat the string 5 times multiply the given string by 5.
- Print the output.
str1 = "SQATools"
print(str1*5)
Output :
SQAToolsSQAToolsSQAToolsSQAToolsSQATools