From b78965221808a3f688c1da12a1179db1bbbf1ad5 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 17 Aug 2018 18:20:54 +0200 Subject: kwargs1 --- python/kwargs1.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 python/kwargs1.py diff --git a/python/kwargs1.py b/python/kwargs1.py new file mode 100755 index 0000000..0917965 --- /dev/null +++ b/python/kwargs1.py @@ -0,0 +1,10 @@ +def a(x, y=None, z=3): + print(x) + print(y) + print(z) + +def b(*args, **kwargs): + return a(*args, **kwargs) + +b(2, y=-1, z=1) + -- cgit v1.2.3