Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
seqs = [create_seq(i) for i in movie_plots]
# merge list-of-lists into a single list
seqs = sum(seqs, [])
# count of sequences
len(seqs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment