I would like to know if there is a Python equivalent to this JavaScript construct:
var myFunctions = {
'greet': function(name){
return "Hello, " + name;
},
'farewell': function(time){
return "See you " + time;
}
}
So I can call the functions this way:
let greetMarta = myFunctions['greet']("Marta");