def functionCreator(txt): def createdFunction(newTxt): return txt + " " + newTxt return createdFunction print(functionCreator("hello")("world"))