Python – Passing a function into another function [duplicate] January 4, 2023 by Tarik Just pass it in like any other parameter: def a(x): return "a(%s)" % (x,) def b(f,x): return f(x) print b(a,10)