Python Argument Passing
Posted: Mon Apr 19, 2004 7:03 pm
Is it possible in the Python language to pass a function as an argument? Like, for example, if I wanted to have the following:
a = Item("Elixir", "It restores your health", hp += 5)
And, if so, what would that look like?
a = Item("Elixir", "It restores your health", hp += 5)
And, if so, what would that look like?