String Reversal Function

  • Share this:

Code introduction


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


Technology Stack : String slicing

Code Type : String operation

Code Difficulty : Beginner


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