I am very new to both arcgis and python. I am trying to define a function that takes in an input shape file, 2 fields from the file to perform a calculation on, a new field in the file to store the calculation, and an output shapefile name.
I have set up the following in Jupyter:

When I call the function:

I get the following error:


If I add lines to the function to print the inputs, and comment out CalculateField I get :
!Height!
!Area!
!Volume!
I have also tried just passing field 1 and field 2 into CalculateField and I get the same error.
If I run CalculateField without using the function, it runs with expected results.

I am not sure what I need to do to pass the parameters of the function through CalculateField.
Any guidance available would be greatly appreciated. Thank You!