# Write a python function to add 2 iterables a and b such that a is even and b is odd

## Topic: Write a python function to add 2 iterables a and b such that a is even and b is odd

Solution

n=10 a = [] b = [] _ = [a.append(i) if i%2==0 else b.append(i) for i in range(n)] def add(a,b): return [a+b for a,b in (zip(a,b))] add(a,b)

List all Python Programs