-
-
Save anonymous/fb62690630b3f804e1ee9bb1fcab1767 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
# test -> extract_unique_elements([2,2,3,[[[3]]]]) | |
def extract_unique_elements(a_list): | |
for elt in range(len(a_list)): | |
if isinstance(a_list[elt],list): | |
return extract_unique_elements(a_list[elt]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment