PragmaEdge interview question

Function in python and How syntax for it