Write a function to Subtracts two lists element wise


Topic: Write a function to Subtracts two lists element wise

Solution

def sub_listelements(l1:list, l2:list):
    return [i-j for i, j in zip(l1,l2)]



List all Python Programs