def tervita(): print "Tere" apply(tervita) def tervita2(*nimed): for eesnimi in nimed: print "Tere,", eesnimi apply(tervita2, ["Juku", "Kati"])