Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
native_backward_string solution in Clear category for Backward String by Jon_Red
def backward_string(val:str)->str:return val[::-1]
if __name__ == '__main__':
# self-checks
assert backward_string('val')=='lav'
assert backward_string('')==''
assert backward_string('ohho')=='ohho'
assert backward_string('123456789')=='987654321'
July 13, 2020
Comments: