1
2
3
4
5
6
7
8
9
10
11
12
13
def func(a, b, c, **kwargs):
    if 'd' in kwargs:
        print "arg is d"
    elif 'e' in kwargs:
        print "arg is e"
    else:
        print "arg is somethingelse"
def main():
    func(a=1,b=2,c=3,d='')
    func(a=1,b=2,c=4,e='')

if __name__ == '__main__':
    main()