def true(): return Truedef true(): return Truelambda :Truetrue = lambda :Trueprint true()def add(x, y): return x + y # lambda x, y: x + ydef usuallyAdd2(x, y=2): return x+y # lambda x, y=2: x+ydef showAllAsTuple(*z): return z # lambda *z: za = lambda x, y=2: x + yprint a(3)print a(3,5)print a(0)print a(0,9)b = lambda *z: zprint b(23, 'zyx')print b(42)
Name (required)
email (will not be published) (required)
Website