String Pair Zipping Function

  • Share this:

Code introduction


This function takes two string arguments and returns a sequence of tuples, each containing the characters at corresponding positions.


Technology Stack : String

Code Type : String Handling Function

Code Difficulty : Intermediate


                
                    
def zipping_strings(str1, str2):
    return zip(str1, str2)                
              
Tags: