Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Reverse a String
- # Enter a string and the program will reverse it and print it out.
- def reverse_string(string):
- return string[::-1]
- string = raw_input('String: ')
- print reverse_string(string)
Add Comment
Please, Sign In to add comment