Ad
Fundamentals
Strings
Code
Diff
  • def reverse_string(n):
        return n[::-1]
        
    • reverse_string = lambda s: s[::-1]
    • def reverse_string(n):
    • return n[::-1]