Multiple Arguments
How do I give multiple arguments (i.e. inputs) to a function?
Answer¶
In a literal sense, functions only take a single argument. However, this argument can be a tuple.
Or, the argument can be one of the inputs, and the return value can be a function which takes the next argument:
Equivalently, but more idiomatically:
More details here
Summary
Instead of giving multiple arguments, give a single argument with multiple parts.
Last update:
January 15, 2023
Created: January 7, 2023
Created: January 7, 2023