classes the same goes for more complex python classes such as lists and stringsdifferent objects contain different databut they all have the same methods the classes we create in this behave in exactly the same way first examplea class representing function to start with familiar examplewe return to the formula calculating atmospheric pressure as function of altitude the formula we used is simplification of more general barometric formulagiven byp - gh/rt ( where is the molar mass of airg is the gravitational constantr is the gas constantt is temperatureand is the pressure at sea level we obtain the simpler formula used earlier by defining the scale height as rt / it could be interesting to evaluate ( for different temperatures andfor each value of to create table or plot of how the pressure varies with altitude for each value of we need to call the function many timeswith different values of how should we implement this in convenient wayone possible solution would be to have both and as argumentsfrom math import exp def barometric(ht) # /( *sr # /( *molm #kg/mol #kpa return exp(- * * /( * )this solution obviously worksbut if we want to call the function many times for the same value of then we still need to pass it as an argument every time it is called howeverwhat if the function is to be passed as an argument to another function that expects it to take single argument only? in this caseour function with two arguments will not work partial solution would be to include default value for the argumentbut we would still have problem if we want different value of another solution would be to have as the only argumentand as global variablet def barometric( ) # /( * this situation is quite common in python programs considerfor instancethe implementation of newton' method in in the functions newton and newton these functions expect two functions as arguments ( and dfdx)and both are expected to take single argument (xpassing in function that requires two or more arguments will lead to an error