Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created July 28, 2020 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/c1ce09e510b86f7d11f8a5cca30dd6a3 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/c1ce09e510b86f7d11f8a5cca30dd6a3 to your computer and use it in GitHub Desktop.
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