Generation

generate functionTue, 28 Feb 2023

a list of tuples from two numpy arrays of the same length

3 def list_of_tuples_from_arrays(a, b): return list(zip(a, b)) list_of_tuples_from_arrays([1, 2, 3], ['a', 'b', 'c'])

Questions about programming?Chat with your personal AI assistant