Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 238 Bytes

reverse-string.md

File metadata and controls

14 lines (12 loc) · 238 Bytes
title description author tags
Reverse String
Reverses the characters in a string.
technoph1le
string,reverse
def reverse_string(s:str) -> str:
    return s[::-1]

# Usage:
reverse_string('hello') # Returns: 'olleh'