how to reverse string in python ?
string = "xirtam"
reverse_string = string[::-1]
This entry was posted on February 9, 2010 by gunslinger_. It was filed under python and was tagged with how, in, python, simple, string, to reverse.
Thanks for this small Python code, I will save it for future reference.
February 10, 2010 at 1:38 pm
you’re welcome bro, i will add more code python code here… :)
February 10, 2010 at 10:10 pm
Fill in your details below or click an icon to log in:
You are commenting using your WordPress.com account. ( Log Out / Change )
You are commenting using your Twitter account. ( Log Out / Change )
You are commenting using your Facebook account. ( Log Out / Change )
You are commenting using your Google+ account. ( Log Out / Change )
Connecting to %s
Notify me of new comments via email.
Notify me of new posts via email.
Enter your email address to subscribe to this blog and receive notifications of new posts by email.
Join 670 other followers
Blog at WordPress.com.