Guest User

Untitled

a guest
Feb 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # Reverse a String
  2. # Enter a string and the program will reverse it and print it out.
  3.  
  4.  
  5. def reverse_string(string):
  6. return string[::-1]
  7.  
  8. string = raw_input('String: ')
  9.  
  10. print reverse_string(string)
Add Comment
Please, Sign In to add comment