Define a function myzip(seq1, seq2) that takes two sequences seq1 and seq2 and returns a list of tuples, where each tuple contains one element from seq1 and the corresponding element from seq2. The length of the returned list should be equal to the length of the shorter input sequence.

def myzip(seq1, seq2):
        """Zip seq1 and seq2 into a list of tuples.

        >>> myzip([1, 2, 3], ['a', 'b', 'c'])
        [(1, 'a'), (2, 'b'), (3, 'c')]
        >>> myzip([1, 2], ['a', 'b', 'c'])
        [(1, 'a'), (2, 'b')]
        >>> myzip([], [1, 2, 3])
        []
        >>> myzip([1, 2, 3], [])
        []
        """
Library
list1 = [1, 2, 3]
list2 = ['a', 'b', 'c']
zipped = list(zip(list1, list2))
print(zipped)

Updated: