def first(): print("first") def second(): print("second") f = first s = second def y(l): l() y(f) #first y(s) #second