Quick actions

cmd+k|ctrl+k

Navigation

Languages

Callbacks!

Snippet info

Language

Python

Visibility

public

Author

apizzimenti

Created

2019-02-07T03:07:44Z

Updated

2019-02-07T04:14:24Z



def simulation(formula, other, params, you, might, need):
    value = formula(5, 3)
    print(value, other, params, you, might, need)
    

def formula_1(n, k):
    return n + k
    
def formula_2(n, k):
    return n - k
    
def formula_3(n, k):
    return abs(n - k)
    

simulation(formula_1, 1, 2, 3, 4, 5)
simulation(formula_2, "other", "params", "you", "might", "need")
simulation(formula_3, "this", "song", "is", "smooth", "jazz")
INFO