Reverse a string
easyStrings10 XP
Return the string s backwards.
Examples
- Input: s = "hello"Output: "olleh"
- Input: s = ""Output: ""
Examples use JSON: true/false/null are True/False/None in Python.
Return the string s backwards.
Examples use JSON: true/false/null are True/False/None in Python.
Run examples checks the examples above. Submit also runs 3 hidden tests.