Answers for "how to make optional parameters without using *args python"

10

python optional arguments

def myfunc(a,b, *args, **kwargs):
      c = kwargs.get('c', None)
      d = kwargs.get('d', None)
      #etc
myfunc(a,b, c='nick', d='dog', ...)
Posted by: Guest on February-10-2020

Code answers related to "how to make optional parameters without using *args python"

Python Answers by Framework

Browse Popular Code Answers by Language