Contribute Media
A thank you to everyone who makes this possible: Read More

Accepting any number of arguments to a function


To make a function that accepts any number of arguments, you can use the * operator and then some variable name when defining your function. Some of Python's built-in functions work this way.


Improve this page