How to Pass Function as Parameter in Python (Numpy)? November 8, 2014 code, programming languages, python No Comments If you want to compute x2 you can easily write a function in Python like this: def sqr(x): return x * x # or x ** 2 If you … [Continue Reading...]