Python program to add three list


Topic: Python program to add three list

Solution

def add_list(num1, num2, num3):
    result = map(lambda x, y, z: x + y + z, num1, num2, num3)
    print("\nNew list after adding above three lists:")
    print(list(result))
nums1 = [1, 2, 3]
nums2 = [4, 5, 6]
nums3 = [7, 8, 9]
add_list(nums1, nums2, nums3)



List all Python Programs