String Reversal Function

  • Share this:

Code introduction


This function takes a string as input and returns the reversed form of the string.


Technology Stack : String slicing

Code Type : Function

Code Difficulty : Beginner


                
                    
def string_reverse(s):
    return s[::-1]                
              
Tags: