Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
s[::-1] solution in Clear category for Backward String by lesnikow
def backward_string(s: str) -> str:
return s[::-1]
if __name__ == '__main__':
assert backward_string('val') == 'lav'
assert backward_string('') == ''
assert backward_string('ohho') == 'ohho'
assert backward_string('123456789') == '987654321'
Dec. 17, 2020