Electron microscopy
 
Variable Length Arguments
- Python for Integrated Circuits -
- An Online Book -
Python for Integrated Circuits                                                                                   http://www.globalsino.com/ICs/        


Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

=================================================================================

There may be situations when you do not know the exact number of arguments while defining the function so that you want the ability to process all the arguments dynamically. These are called variable-length argument lists that enables you to process more arguments than you specified while defining the function. Python supports variable length arguments in two ways, which are *args and **kwargs, to allow a dynamic number of arguments.

         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         
         

 

 

 

 

 

 

 

 

 

 

=================================================================================