Skip to content

Instantly share code, notes, and snippets.

@bwasti
Created September 16, 2018 18:17
Show Gist options
  • Save bwasti/180dbcc69c3324691f640722711857b5 to your computer and use it in GitHub Desktop.
Save bwasti/180dbcc69c3324691f640722711857b5 to your computer and use it in GitHub Desktop.
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