Redus Russ

Generation

generate functionMon, 06 Feb 2023

make 2 arrays then put them both in another array

def concatenate(a, b): c = [0] * (len(a) + len(b)) c[:len(a)] = a c[len(a):] = b return c concatenate([1, 2, 3], [4, 5, 6])

Questions about programming?Chat with your personal AI assistant