0
Q:

Write a function that constructs a list by “zig-zag” two other lists: def zig_zag(A:list, B:list) -> list: """ >>> zig_zag([1, 2], [3, 4]) [1, 3, 2, 4] >>> zig_zag([1, 2, 3], [4, 5]) [1, 4, 2, 5, 3] >>> zig_zag([1, 2], [3, 4, 5]) [1, 3, 2, 4, 5] """

def zig_zag(A:list, B:list) -> list: 
2

New to Communities?

Join the community