Test lambda.

This commit is contained in:
Captain ALM 2022-11-30 19:13:17 +00:00
parent 75dfd6babb
commit 5a45ee6aab
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

10
main.py
View File

@ -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))