Python program to Copy a String

print("Enter the String: ")
textOne = input()
textTwo = ""
for x in textOne:
    textTwo = textTwo + x
print("\nOriginal String =", textOne)
print("\nCopied String =", textTwo)

OUTPUT:

Enter the String:
chase
Original String =chase
Copied String = chase

Leave a Comment