From 5a45ee6aabf4ed14a196c1549f03f37e6340bc58 Mon Sep 17 00:00:00 2001 From: Captain ALM Date: Wed, 30 Nov 2022 19:13:17 +0000 Subject: [PATCH] Test lambda. --- main.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index c3f9b09..6664a43 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,3 @@ -#Test any number of arg pass (As a dict) -def iaccept(test = "Oh",**many): - print(test,many) - -iaccept() -iaccept("Hey",a="Test") -iaccept(a="Test", b=1, c=2) +#Lambda +x = lambda a,b:a**b +print(x, type(x), x(2,3))