def perform(f): a = "A" b = "B" f() #f(a,b) def action1(): print("No arg") def action2(a,b): print(a)