Ad
Fundamentals
Strings
Code
Diff
  • def reverse_string(n):
        #return n[::-1]
        return ''.join(reversed(n))
        
    • def reverse_string(n):
    • return n[::-1]
    • #return n[::-1]
    • return ''.join(reversed(n))