3.4 Forcing keyword-only arguments with the * separator
There are some situations where we have a large number of positional parameters for a function. Pragmatically, a function with more than about three parameters can be confusing. A great deal of conventional mathematics seems to focus on one- and two-parameter functions. There don’t seem to be too many common mathematical operators that involve three or more operands.
When it gets difficult to remember the required order for the parameters, this suggests there are too many parameters.
3.4.1 Getting ready
We’ll look at a function to prepare a wind-chill table and write the data to a CSV format output file. We need to provide a range of temperatures, a range of wind speeds, and information on the file we’d like to create. This is a lot of parameters.
One formula for the apparent temperature, the wind chill, Twc, is this: