Reverse a String simple program in python

Q) Write a simple python program to reverse a given String?

Python Code:-

s=raw_input("Enter a stirng : ")
print s[::-1]


Output:-

Technicaldeal.com Python reverse string

0 comments:

Post a Comment