Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def my_func(first_arg, second_arg, *args):
- print first_arg, second_arg
- print 'other args'
- print args
- my_func('one', 'two', 'three', 'four', 'five', 'etc')
- def my_func2(first_arg, second_arg, *args, **kwargs):
- print first_arg, second_arg
- print 'other args'
- print args
- print 'kwargs'
- print kwargs
- my_func2('one', 'two', 'three', 'four', kw_one='five', kw_two='etc')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement