From 75dfd6babb899266d0c85c9bc0edb02065d1ee16 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Wed, 30 Nov 2022 19:04:49 +0000 Subject: [PATCH] Test opt args. --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index c7d7a1b..c3f9b09 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ #Test any number of arg pass (As a dict) -def iaccept(**many): - print(many) +def iaccept(test = "Oh",**many): + print(test,many) iaccept() -iaccept(a="Test") +iaccept("Hey",a="Test") iaccept(a="Test", b=1, c=2)