Created
August 20, 2019 23:44
-
-
Save liamcain/3bd091191a092b2fdd222a5e1f2cbe4c 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
def minimum_candidate_filter(l): | |
s=list(map(str, l)) | |
return [c for c in l if s==s[::-1] and c**(.5)%1==0] | |
print(minimum_candidate_filter([0, 1000, 121, 676])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment