Skip to content

Instantly share code, notes, and snippets.

@tjjh89017
Created October 28, 2014 14:22
Show Gist options
  • Save tjjh89017/434412498f513cc4e6b4 to your computer and use it in GitHub Desktop.
Save tjjh89017/434412498f513cc4e6b4 to your computer and use it in GitHub Desktop.
def det(row1, row2):
return row1[0] * row2[1] - row1[1] * row2[0]
l4d2 = [ [1, 2], [3, 4] ]
print det(*l4d2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment