Last active
March 13, 2017 21:30
-
-
Save cjw296/fa44762a20734440babbc60a7a4c2c35 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 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