human
Reverse a string
assistant
Here is some code to reverse string 'foo'

''.join(reversed('foo'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.