Skip to content

Instantly share code, notes, and snippets.

@cjw296
Last active March 13, 2017 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjw296/fa44762a20734440babbc60a7a4c2c35 to your computer and use it in GitHub Desktop.
Save cjw296/fa44762a20734440babbc60a7a4c2c35 to your computer and use it in GitHub Desktop.
def dot(l, k):
if len(l) != len(k):
return 0
return sum(a*b for a, b in zip(a, b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment