In Python, I'd like to write a function make_cylinder_volume(r)
which returns another function. That returned function should be callable with a parameter h
, and return the volume of a cylinder with height h
and radius r
.
I know how to return values from functions in Python, but how do I return another function?