Program - Reverse a given string


Topic: Program - Reverse a given string

Solution

str1 = "PYnative"
print("Original String is:", str1)
str1 = str1[::-1]
print("Reversed String is:", str1)



List all Python Programs