Computer Science
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
Python
Python Data Handling
37 Likes
Answer
str = input("Enter string: ")
len = len(str)
opStr = str * len
print("Result", opStr)
Output
Enter string: eka
Result ekaekaeka
Answered By
21 Likes
Related Questions
Write a program to find a side of a right angled triangle whose two sides and an angle is given.
Write a program to calculate the radius of a sphere whose area (4πr2) is given.
Find the volume of the cylinder (πr2h) as shown:
Radius = 8 cm
Height = 15 cmWrite a program to calculate the area of an equilateral triangle. (area = (√3 / 4) * side * side).