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
Program:
str1 = "SQATools" n1 = 5 print("Result: ", str1*n1)
Output:
Result: SQAToolsSQAToolsSQAToolsSQAToolsSQATools