Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
function arguments
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Larry Bates, post: 1779733"] Paul has explanation (see his response), but I wanted to expand a little. def foo(*args, **kwargs): for arg in args: print arg for key, value in kwargs.items(): print key, value return a b y 2 x 1 or def foo(list_of_args, **kwargs): # # Now call function with args as individual arguments # and keyword arguments as individual keyword # arguments also. # call_other_function(*list_of_args, **kwargs) return Hope this helps, Larry Bates [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
function arguments
Top