There\'s a function which takes optional arguments.
def alpha(p1=\"foo\", p2=\"bar\"): print(\'{0},{1}\'.format(p1, p2))
Let me iterat
Pass the arguments as kwargs from a dictionary, from which you filter out the None values:
None
kwargs = dict(p1='FOO', p2=None) alpha(**{k: v for k, v in kwargs.items() if v is not None})