y = lambda n:n**0.5 print(y(9),y(10),sep='\t\t') # 3.0 3.1622776601683795 z = lambda a,b: a**b print(z(2,3),z(7,4),sep='\t\t') # 8 2401 b1 = (lambda x:x>0)(10) print(b1) # True b2 = (lambda x,y:x-y)(8,6) # 2 print(b2) print((lambda k:k%2==0)(5)) # False print((lambda L:sum(L))([2,3,4,5])) # 14
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter