Skip to content
loading...

re: A look at itertools chain method VIEW POST

FULL DISCUSSION
 

I nice way to chain two sequences is unpacking them in a list literal. 😍

a, b = (1, 2), (3, 4)
print([*a, *b])
# [1, 2, 3, 4]
code of conduct - report abuse