python more graceful tricks - Serbipunk/notes GitHub Wiki

sum(iterable, [])

permutation_records = sum(all_permutations, [])

input

Screenshot 2025-06-17 at 17 35 17

output

Screenshot 2025-06-17 at 17 36 00