Skip to content

Instantly share code, notes, and snippets.

@aravindpai
Created March 26, 2020 20:18
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 aravindpai/f01ae534b81fe9d051f819bfa7a5337f to your computer and use it in GitHub Desktop.
Save aravindpai/f01ae534b81fe9d051f819bfa7a5337f to your computer and use it in GitHub Desktop.
#converting 2D array into 1D array
notes_ = [element for note_ in notes_array for element in note_]
#No. of unique notes
unique_notes = list(set(notes_))
print(len(unique_notes))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment