Computer Science

Write a program which reverses a string and stores the reversed string in a new string.

Python

Python String Manipulation

39 Likes

Answer

str = input("Enter the string: ")
newStr = ""
for ch in str :
    newStr = ch + newStr
print(newStr)

Output

Enter the string: computer studies
seiduts retupmoc

Answered By

21 Likes


Related Questions