Created
September 16, 2018 18:17
-
-
Save bwasti/180dbcc69c3324691f640722711857b5 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
import time | |
def Square(x): | |
time.sleep(0.1) | |
return x ** 2 | |
def Mul(x, y): | |
time.sleep(0.1) | |
return x * y | |
def Add(x, y): | |
time.sleep(0.1) | |
return x + y | |
a = Square(2) | |
b = Square(3) | |
c = Mul(a, b) | |
d = Add(a, b) | |
print(c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment