Skip to content

Instantly share code, notes, and snippets.

@chasefloyd
Created November 1, 2017 18:29
Show Gist options
  • Save chasefloyd/be50969557c184779def819dc4527d02 to your computer and use it in GitHub Desktop.
Save chasefloyd/be50969557c184779def819dc4527d02 to your computer and use it in GitHub Desktop.
Python solution for returning the range
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