Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Library wiki - Merge arrays / Python
a = [1, 2, 3]
b = [4, 5, 6]
a = a + b # or a += b for shorten
a = [1, 2, 3]
b = [4, 5, 6]
a.extend(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment