Reverse a string
Reverse a string
You are encouraged to solve this task according to the task description, using any language you may know.
You are encouraged to solve this task according to the task description, using any language you may know.
Take a string and reverse it. For example, "asdf" becomes "fdsa".
Python
Optimized for user input
raw_input()[::-1]
Already known string
string[::-1]