Print the given string 3 times

In this program, we will take a string as input and print a string 3 times.

Steps to remove the program
  1. Take a string as input.
  2. Print the given string 3 times using ‘*‘.
				
					#Input string
str1 = "sqatools"

#Printing output
print(str1*3)
				
			

Output :

				
					sqatoolssqatoolssqatools
				
			

repeated characters in a string and replace it with a single letter

print each character on a new line

Leave a Comment