Program to repeat a given string 5 times.

In this Python basic program, we will repeat a given string 5 times.

Steps to solve the program
  1. Take a string as input.
  2. To repeat the string 5 times multiply the given string by 5.
  3. Print the output

Program:

str1 = "SQATools"
n1 = 5

print("Result: ", str1*n1)

Output:

Result: SQAToolsSQAToolsSQAToolsSQAToolsSQATools