Created
December 19, 2019 01:02
-
-
Save Vresod/a1d483ea4ccba3716103b16a2a48e11d to your computer and use it in GitHub Desktop.
Bad Math in python.
This file contains hidden or 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
from time import sleep, time | |
def add(n1, n2): | |
start = time() | |
sleep(n1) | |
sleep(n2) | |
return int(time() - start) |
This file contains hidden or 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 multiply(n1,n2): | |
n3 = n1 | |
for i in range(1,n2): | |
n1 += n3 | |
return n1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment