Python Pass A Function As A Parameter