Q. Write a program that inputs a string and then prints it equal to number of times its length.

 

e.g.

Enter string : "eka"

Result ekaekaeka

 

Answer =

 

string = input("Enter the String :-")
print(string * len(string))



Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post