The * and ** syntax isn’t immediately obvious to most Python newcomers, but is an extremely powerful feature for defining functions or methods which take variable numbers of arguments, or which accept keyword arguments whose names aren’t necessarily known in advance. Marty has taken the time to write up a good introductory article explaining how they work.
Comments for this link are closed. If you'd like to share your thoughts on this link with me, please contact me directly.