Created
March 26, 2020 20:18
-
-
Save aravindpai/f01ae534b81fe9d051f819bfa7a5337f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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