Created
November 1, 2017 18:29
-
-
Save chasefloyd/be50969557c184779def819dc4527d02 to your computer and use it in GitHub Desktop.
Python solution for returning the range
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 image(f): | |
x = [f[0][1], f[1][1], f[2][1]] | |
x = sorted(x) | |
return list(set(x)) | |
f = [[1,4],[2,5],[3,4]] | |
print(image(f)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment