I feel sure that I read about this somewhere but can't remember the details. The problem I have is this:
I have two functions
def go_foo():
print("foo")
def go_bar():
print("bar")
and this variable:
name = "foo"
I want to use name
to call one of my functions like this:
go_{name}()
#output in this case would be foo
How can this be achieved?