SHARE
TWEET

Reverse string

Grafundzijus Apr 23rd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Create a function that accepts a string and returns the same string reversed.
  2.  
  3. def string_reverse():
  4.     word = str(input('Please enter your word: '))
  5.     word=(word[::-1])
  6.     return(word)
  7.  
  8. print(string_reverse())
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top